Support » Fixing WordPress » How to add global site tag to our website? And then add Gtag from google ads !

  • For conversion tracking to work, you’ll need to install the conversion tracking tag, which consists of a global site tag and an event snippet. How do I get google site tag or Gtag in all pages of my website for google ads to track the conversion?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Roxanne S.


    Hi @trenfort ,

    Thanks for reaching out!

    Please ensure that you have the WooCommerce Google Analytics plugin installed before moving forward with the below instructions:

    Global site tag: (If this is your first time)

    Select The global site tag isn’t installed on all your HTML pages. Copy the tag and go to Appearance > Theme Editor in your WordPress admin page. Go to the Theme Files list on the right-hand side. Scroll down, clico on the Theme Header file. Look for the <head> element in the code. Paste the global site tag anywhere between it and the </head>element. Then, click on Update File.

    Next, select The global site tag is already installed on all pages but comes from another Google product (such as Google Analytics) or from another Google Ads account if it applies to you. Copy the code that contains your conversion ID and paste it on the global site tag, right before the </script> element.

    The conversion ID code should look like this:

    gtag(‘config’, ‘AW-CONVERSION_ID’);

    Click Update File.

    Global site tag (If you already had it installed previously):

    Select The global site tag on all pages was installed already when you created another conversion action in this Google Ads account. Just make sure you have the correct conversion ID when you do this.

    The Event Snippet:

    The Event Snippet (or conversion tracking code) needs to go on your conversion page (“Thank You” page). You can either track conversions through a Page Load or a Click. Make sure you select the correct one before copying the event snippet.

    Copy the snippet from your Google Ads account and go to WooCommerce/WordPress page you’d like to track. On the top right corner of the text box, you have two options: Visual and Text. Select Text and paste the event snippet either above or below all the text you have there.

    Click Update.

    For more information on WooCommerce Google Analytics Integration, please see the below documentation:

    Hope this helps!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.