Google ads conversion event snippet

Hi,

Is the alid plugin have this feature somewhere ? I dont see a way to put the snippet code provided by google in the UI dali theme or alid plugin.

This what Google ask to do:

Copy the snippet below and paste it between the <head> </head> tags of the pages you want to track in, just after the global site tag. Next, call the gtag_report_conversion function when a user clicks on the defined link or button.

Or maybe you have any guide on how to set up the add-to-cart event to google ads? Im thinking implementing this code to single-product.php for now...
 

daniel-97

Well-Known Member
Copy the snippet below and paste it between the <head> </head> tags of the pages you want to track in, just after the global site tag.
If you're using Alidropship Original themes, there should be the Head section in Customization. Put your code there
Next, call the gtag_report_conversion function when a user clicks on the defined link or button.
This one is hard, there's no section for you to put this into a button. I think you can only add the code to the theme if you use a child theme
 
If you're using Alidropship Original themes, there should be the Head section in Customization. Put your code there

This one is hard, there's no section for you to put this into a button. I think you can only add the code to the theme if you use a child theme

Yah for the site tag its easy :p
The difficult part is as you mention the snippet event
Theres no way to put it in the UI except the thank you page, but we need to fill out a different transaction id for every conversion and aswell the specific price of the conversion.

gtag('event', 'conversion', {
'send_to': 'AW-ID',
'value': conversion_sell,
'currency': 'currency',
'transaction_id': 'order_id'
});
 

daniel-97

Well-Known Member
Yeah, had a talk with Google support about this. This tag from Google is best for static Thankyou page, but Alidropship generates 1 unique page for each order.

I suggest you buy the Google Merchant Add-on, save your time on something else ;)
 
Yeah, had a talk with Google support about this. This tag from Google is best for static Thankyou page, but Alidropship generates 1 unique page for each order.

I suggest you buy the Google Merchant Add-on, save your time on something else ;)

Well this add-on is good for the shopping ads... Im promoting on youtube skipable ads right now... Do you think the add-on will trigger the event for that aswell?
 

daniel-97

Well-Known Member
Well this add-on is good for the shopping ads... Im promoting on youtube skipable ads right now... Do you think the add-on will trigger the event for that aswell?
That has nothing to do with the ads type. It will track the actions on your store, not outside of that
 
Top