Posts tagged with google-analytics

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.

As a frontend developer I've been tasked with the following. The customer is using Google Ads to get traffic to their website A. They can successfully track campaigns in their Google Ads dashboard. Now they want to be able to do the same for website B, which is on the same domain. And they ask me to do it.

Do I need to do anything as frontend developer to make customer able to track UTM campaigns on website B? E.g. do I need to send Google Analytics events, do need to configure something on frontend side?

I found it very hard to find any info on how it actually works (there is a ton of very basic articles on what UTM parameters are, how to generate them and rubbish like that, but nothing about how Google knows when someone landed on a URL with UTM parameters). If anything, I am under impression that it should just work out of the box.

I'm completly lost !I started to use Google Ads for my B2C Saas and I need to send conversion event to it.

I use stripe as payment provider. So I use webhook on my backend to handle payment.success event and trigger an event 'purchase' with Google Measurement Protocol. It's working half of the time and and I don't see events in real time in the debugview.

🤔 My first question is Measurement Protocol the good way to do in this context ?

🤔 Secondly, is it possible to use Google Tag Manager to fetch purchase events from HTTP requests done with Google Measurement Protocol and relay them to Google Ads?

Backend -- (purchase event) --> GTM --> Google ADS (Conversion) & GA4

Here a payload example I use to test :

{     "client_id": "1770912193.1700571402",     "user_id": "***************",     "timestamp_micros": "1700585815945000",     "non_personalized_ads": true,     "events": [         {             "name": "purchase",             "params": {                 "items": [],                 "currency": "EUR",                 "transaction_id": "123456789",                 "value": 6.60,                 "debug_mode": 1             }         }     ] } 

So I am trying to send ga ecommerce events such as "add_to_cart" or "begin_checkout". Now, in the event objects, I am confused as to what price to mention in the items array of the event object. Do I mention the discounted price or the full price?

Allow me to elaborate with examples.

gtag("event", "purchase", {     transaction_id: "T_12345",     coupon: "socksSale",     value: 12.00, // value = quantity x sale price     currency: "USD", // The currency of the value, discount, and price     items: [      {       item_id: "SKU_12345",       item_name: "Socks",       discount: 2.00, // The discount per item       price: 4.00, // The sale price is the per item list price (6.00) minus discount (2.00)       quantity: 3 // The number of items sold     },     ] }); 

This example is taken directly from here: https://developers.google.com/analytics/devguides/collection/ga4/apply-discount?client_type=gtag

Now, in the above example, Google states that the price of the items must be the discounted price:

The sale price is the per item list price (6.00) minus discount (2.00)

Now, consider another example. (Again from Google)

gtag("event", "add_to_cart", {   currency: "USD",   value: 7.77,   items: [     {       item_id: "SKU_12345",       item_name: "Stan and Friends Tee",       affiliation: "Google Merchandise Store",       coupon: "SUMMER_FUN",       discount: 2.22,       index: 0,       item_brand: "Google",       item_category: "Apparel",       item_category2: "Adult",       item_category3: "Shirts",       item_category4: "Crew",       item_category5: "Short sleeve",       item_list_id: "related_products",       item_list_name: "Related Products",       item_variant: "green",       location_id: "ChIJIQBpAG2ahYAR_6128GcTUEo",       price: 9.99,       quantity: 1     }     ] }); 

This example is taken directly from here: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag#add_to_cart

Here, the item price is clearly not the discounted price as the event value is this price minus the item discount e.g. The full price.

The above examples show a clear contradiction in the guidelines.

I was able to find one relevant question on Stack Overflow here: What Discount property means in Google Analytics 4? . The only answer here states that item prices should be the full prices.

Now, I understand that one can send either of the 2 types of prices as they are the ones who have to interpret the reports afterwards. However, I am sending the data to Google Ads from Google Analytics as well. And, I do not want to report inaccurate data. So, what is the more standard/accepted method of reporting item prices?

I am running ad campaigns and I want to track the performance of users I acquire through those ads.

With the user data I get the gclid , I want to map this gclid with the campaign name or campaign id.

How can I do this?