Posts tagged with google-tag-manager

AdWords seems to be counting only ~5% of the actual conversions?! (purchases)

I know because I have also an Analytics tag which shows the correct number of visits on this page.

Tag-manager snippet is only on the thank-you page after purchase.

Here is my thank-you page tag snippet:

>>> ALL IN THE BODY OF THE HTML <<<

<script src="https://www.googletagmanager.com/gtag/js?id=AW-103xxMyId"></script> <script type="text/javascript">   window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());   gtag('config', 'AW-103xxMyId'); var transValue = 100; var transSku = "A-Product"; gtag('event', 'conversion', {       'send_to': 'AW-103xxMyId/TOQHxxSomeIdxxx_oe8D',       'value': transValue,       'currency': 'USD',       'transaction_id': transSku   }); </script> 

Any idea why? Thanks.

I am not that experienced with working with the Google dashboards, and the last of couple of days I have been struggling a lot with an issue. I am not sure if this is even possible and how, but reading a lot of documentation left me blurry.

Background: We place a cookiebanner and cookies using Google Tag Manager (GTM) on our website. At this moment we load the 'Google Analytics - Universal Analytics' using GTM. We collect anominized data using GA, and the analytics data is showing up in our GA dashboard and is working perfectly. So far, so good.

Challenge: Now our marketing team wants to use Google Ads to draw people to our website. They also want to track conversion using Google Analytics combined with Google Ads. In the settings of Google Ads, the GA and Google Ads data is linked. According to the GDPR we need to explicitly ask permission to our users to process the data in this way (Targeting/remarketing). Using GTM we now implemented a cookie banner on our website, in which we ask consent about processing the data for marketing purposes. Is it possible to couple this consent question using GTM to enable/disable the link between our anominized GA data and Google Ads? If so, how?

If there are better practice solutions for my issue, I would like to hear :)

Thanks!

Google says this should be added to html on the "conversion page".

<!-- Event snippet for Website lead conversion page --> <script>gtag('event', 'conversion', {'send_to': 'AW-sdad/-dsafdsa'});</script> 

I have a ReactJS app, so I have no single html "conversion page".

Can I run it from javascript somehow?

createAccount = () => {     Axios.post(`/api/signup`, { user })       .then(async (resp) => {         await Axios.post("/api/login", { email: this.state.email, password: this.state.password });         this.props.history.push("/app");         // Run google ad convert here?       })       .catch((err) => {         console.log(err);       });   }; 

I'm currently trying to track form submissions on a site that has forms all over it as well as user accounts. We want to track the first form submission (a new lead) then nothing else. Because of the platform (I don't have access to the backend) it's causing every form submission to be tracked. Is there a way to limit it to user or session?

In this instance I'm wanting to fire conversion pixels for adwords and it's firing every time a form is filled out.

I've looked at Simo's guide on this that was written 6 years ago but it doesn't seem to be working.

What I did as a stopgap is identify the most common single use form (the registration form) and use that as the conversion method. However, there are other forms that are meant to be used by logged in users that get submitted over and over again. If a non-logged-in user uses this form an account is automatically created. These are the form submissions I'm trying to track.

A client gave me a conversion event code using gtag / global site tag...

gtag('event', 'conversion',  { 'send_to': 'AW-XXXXXXXX/XXXXXXXX',      'customField1': 'submitted',      'customField2': 'something',  }); 

...which I am trying to implement via Google Tag Manager. However, I don't see a way to add custom fields (customField1, customField2) via the Google Conversion tag in GTM.

Am I missing something? Or using the wrong tag?

Thanks in advance.