Posts tagged with google-tag-manager

I want to implement both Google Remarketing and GA4 Ecommerce events into my website.

According to the latest Google Ads Remarketing docs (https://support.google.com/tagmanager/answer/6106009?hl=en#zippy=), this is done like this:

dataLayer.push({   'event': 'add_to_cart',   'value': 78.45,   'items' : [{     'id': '1234',     'google_business_vertical': 'retail'   }] }); 

I already have lots of dataLayer pushes using the same event names (e.g. add_to_cart etc.) also using the "items"-array for GA4 Ecommerce events - but for those, the identifier is not id, but item_id. See the official reference here: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=de&client_type=gtag#add_to_cart

Now I am wondering: whats the best and correct way, to implement both frameworks? Do I:

  1. do 2 pushes, once the ga4 ecommerce one and once the remarketing one?
  2. combine both pushes and use both id AND item_id as keys in my array?
  3. push 2 item-arrays within one push, as our marketing agency suggested?

None of those options seems really ideal to me.

I'm currently working on passing the User ID to Google Ads using Google Tag Manager (GTM). I've successfully configured the data layer to pass the User ID, and I can see this working correctly in GTM's preview mode, as shown in the screenshot below:

https://imgur.com/7lEkFcO

However, the User ID does not appear to be pushed into Google Ads. I've followed the steps to configure the Google Ads tag to capture the User ID, but it seems like something is missing or incorrectly set. Here are the steps I've taken so far:

  1. Configured the data layer to include the User ID.
  2. Verified in GTM preview mode that the User ID is being passed correctly.
  3. Set up the Google Ads tag to include the User ID variable. https://imgur.com/FU4kjxb
  4. I have setup google tag to pass user_id into google Analytics: https://imgur.com/uk3lnW4
  5. I have checked in the debug mode in google analyrics to see if i can find the User ID. But i cant.
  6. List item

Despite these steps, the User ID is not showing up in Google Ads.

What could be the possible reasons for this issue?

  1. Could there be an issue in when i am triggering the tags?
  2. Are there any specific debugging steps i can follow?

Feel free to modify the question to better suit your specific situation or any additional details you might want to include.

I want to add Google Analytics and Google Adsense to my website in NextJS. I found this official doc: https://nextjs.org/docs/app/building-your-application/optimizing/third-party-libraries#google-tag-manager

According to this, its enough to add:

 <GoogleTagManager gtmId="GTM-XYZ" /> 

However, I have problem with understanding how Google adsense works. I know that google adsense require from me to include another script to my head (my account is not approved yet for google ads). The problem is that I want to let user decide whether he accepts analytics and advertisement cookies. I was going to simply remove GoogleTagManager from my head for analytics but what with advertsiement? I.e. I can't remove the Google Ads script because I dont want to remove ads at all so have can I distinguish between "personalized adverts" (user accepted cookies) and "not personalized" adverts? How should I construct my code to handle all cases?

Using a third party tool (Appointy.com) to manage appointment sign ups. Goal is to take this conversion data and use it for Google Ads and Google Analytics (GA4). Per Appointy support, the only way to track appointments is through Google Tag manager integration. They have provided us directions on how to connect Tag manager to appointy, but we cannot figure out how to connect the newly created Google Tag to Google Analytics or Google Ads.

The confusing part is the Appointy to Google Tag manager tag uses a custom HTML tag, so there is not an inherently straight forward way (at least to me) on the next steps to integrate the tag in tag manager over to Google Analytics or Google Ads.

Knowing I can't access any code from the third party tool appointy, how do I take this custom HTML tag below and integrate that into Google Ads and Google Analytics?

Here are the only directions I Received from appointy:

How to set up Redirection after booking. ​ The redirection is only possible through Google tag manager. ​ Below are the Steps.

Login to your Google tag manager account. Click on Tag and create New Tag. Choose Tag type as "CUSTOM HTML" Input the below code in CUSTOM HTML and click SAVE. ​

<script>setInterval(function(){ var string = window.location.href; var substring1 = "bookings/confirmation"; if (string.indexOf(substring1) !== -1) { setTimeout(function(){ window.location.assign("Destination URL"); }, 3000); } }, 3000);</script> 

​ After saving you need to setup the trigger. Click on Trigger -> Create new triggers -> Select "All element" -> Select "All Click" and SAVE.

I configured the purchase tag in google tag manager

I also configured the remarketing tags:

add_to_cart purchase view_item view_item_list

I want to use max performance

Should I use the conversion label of my purchase conversion action present in Google Ads for all my Google Tag Manager remarketing tags?

Should I create a conversion action in Google Ads for each remarketing tag and add a different conversion label for each remarketing tag in Google Tag Manager?

Or should I leave the field empty for each conversion label of each of my remarketing tags in google tag manager?

Please enlighten me

THANKS

I don't know how to fill out my conversion labels of my remarketing tags in my google tag manager to advertise google ads