Can I delay GTM firing when tracking through the Google and Youtube App?

Can I delay GTM firing when tracking through the Google and Youtube App?

formuladoctor
Tourist
8 0 0

I have Google tag tracking set up using the automated integration of the Google & Youtube Shopify app. 

 

I want to delay firing of the Google tag because it is slowing down my page loading. This is how the tag appears in my Google Tag Manager. Of note, this tag is not associated with my Tag Manager Account (as shown to the left of "Google Tags").

 

Screenshot 2024-07-11 at 11.25.19 AM.png

 

Clicking through to the tag, there is no option to delay firing. 

 

Screenshot 2024-07-11 at 11.25.59 AM.png

 

Does anyone know how to delay firing using the GTM interface or by editing code on my Shopify site (Dawn theme) to delay when the Google & Youtube app loads? 

 

As another possible solution, does anyone know how to associate the automated Google Tag with my GTM Account? When clicking into the GTM account, there are options to customize the code and create trigger conditions -- but these options are not available when using the automatically configured tag. 

Reply 1 (1)

DaisyVo
Shopify Partner
4469 500 597

Hi @formuladoctor 

To address the issue of delayed Google tag firing and its integration with Google Tag Manager (GTM) in your Shopify store, consider the following steps:

  1. Delaying Google Tag Firing:

The Google & YouTube app for Shopify automatically integrates Google tags into your store's code, and these tags typically load asynchronously to minimize impact on page load times. However, if you're experiencing performance issues, you can take the following actions:

  • Review and Optimize Tags: Ensure that there are no duplicate or unnecessary tags on your site, as they can adversely affect page speed. Consolidate tags where possible and remove any that are redundant.
  • Implement GTM for Advanced Control: By manually setting up GTM, you gain more control over tag firing sequences and conditions. This allows you to manage when and how tags load, potentially improving page performance. For guidance on integrating GTM with Shopify, refer to this comprehensive tutorial:
  1. Associating Automated Google Tags with GTM:

The tags added by the Google & YouTube app are not directly managed through your GTM account, which limits your ability to control their behavior. To integrate these tags into GTM:

  • Manual Tag Implementation: Disconnect the automated Google tag integration within the Google & YouTube app. Then, manually set up the necessary tags within GTM. This approach provides full control over tag management and firing triggers. Detailed instructions for setting up your Google tag with Shopify can be found here:
  • Avoid Duplicate Tracking: Ensure that you do not have multiple instances of the same tag firing, as this can lead to data inaccuracies and further performance issues. After setting up tags in GTM, verify that the automated tags from the Google & YouTube app are fully disconnected.

By implementing GTM manually, you gain enhanced control over your tags, allowing you to optimize their loading behavior and improve your site's performance. Always test changes in a controlled environment before deploying them to your live site to ensure they function as intended without negatively impacting user experience.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution