GTAG conversions

Hi there,

I have a site at https://projectr2.hu/

With phone and email links in the footer. This act as links, and the PPC team asked me to use these conversions for them

***gtag('event', 'kattintas', {***
***'event_category': 'telefon',***
***'event_label': <label>,*** <b><i>*'value': <value>*
*});*</i>

Email címre kattintás:

gtag(‘event’, ‘kattintas’, {
’event_category’: ‘email’,
’event_label’: , ‘value’:
});

So my question is, what is the best way to go about this?

Hey @Pbalazs89,

Thanks for reaching out!

If you want to add Gtag to your website, you may check this article.

Hope that helps.

Hi Mark,

The issue is that this is for e-commerce.
All I want to track is click on two a tags on the bottom of the page.
This article you sent deals with Woocommerce integration and is pretty pricey. Is there a method to achieve this without using an extra plugin?

Hi @Pbalazs89,

I would suggest you go through the following articles which may help you with this.


Thanks

Hi,

The tracking code is no issue.
Adding the conversion code to PRO theme custom buttons is, since I can’t add onclick="" to them if I am right. Is there an easy way to grab the class let’s say and add an event listener through pro that will work, so I can add this code to say any buttons?

gtag(‘event’, ‘kattintas’, {
’event_category’: ‘email’,
’event_label’: , ‘value’:
});

Hey @Pbalazs89,

There’s no detailed explanation on how the code should be executed. If you want to add onclick to a link or button, you just need customize and locate the attribute section. From there, you can add the onlick attribute.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.