Google conversion tracking integration.. - Forum | JoomShaper
Staff replied SP Page Builder

Google conversion tracking integration..

Asked by Mike Lawson 5 years ago Last activity 5 years ago

Hello

I am tring to integrate converions tracking via google tag manager, I have added the appropriate tracking code in the head tags of the site, however in order to complete the tracking there is a specific snippet that must be added to the clickable element called the onclick attribute, which can be easily added in a standard HTML link <a href=> or <button> element, however I need helping adding the onclick attribute to a button add-on in SPPB. Here's an example of how Google wants the attribute structured:

<button onclick="return gtag_report_conversion(‘http://example.com/your-link')">Submit</button>

Is there any way to integrate that into the button addon? Thanks

1 reply

Rashida Rahman Staff

Hi there!

Thanks for your query.

I will let our Developer team know about your wish.

Best Regards

Log in to reply.