Custom Event (Via GTM) Not Working

Hi everyone,

Appreciate any advice for the below :folded_hands:

I’ve created a Custom Event called ‘Phone Number Clicks’ in hubspot and have set it up via GTM.

I’ve done the same set up for Email Clicks, and it’s working as I can see the data matches up in our Looker Studio report.

However, for the Phone Number Clicks the stats look like they’re almost doubled so something looks a bit off. So it’s puzzling that the email clicks works but the phone number clicks doesn’t. Greatly appreciate your help with this!

Here is the JS in Hubspot:

_hsq.push([ “trackCustomBehavioralEvent”, { name: “pe43976934_phone_number_clicks”, properties: { click_url: clickURL, click_text: clickText, pageTitle: pageTitle, pagePath: pagePath } } ]);

Here is the custom HTML tag in GTM:

<script> function sendToHubSpot(clickURL, clickText, pageTitle, pagePath) { _hsq.push([ ‘trackCustomBehavioralEvent’, { name: “pe43976934_phone_number_clicks”, properties: { click_url: clickURL, click_text: clickText, pageTitle: pageTitle, pagePath: pagePath }, }, ]); } // Ensure the GTM variables are passed correctly sendToHubSpot(‘{{Click URL}}’, ‘{{Click Text}}’, ‘{{DLV - Page title}}’, ‘{{Page Path}}’); </script>

And the phone number trigger for GTM is here:

Many thanks in advance!

Hi @LK8! Welcome to the Community-- happy to have you here :blush:

I’d like to invite some of our subject matter experts to this thread! Hey @Ben_M, @TomM2, @SanjayKumar do you have any advice here? Thanks in advance!

Best,
Kennedy

Thank you so much @kennedyp !