Posts tagged with google-ads-api

I've tried many different permutations of gtag and ga codes and I can't seem to get a positive conversion on Google Analytics.

This code runs on form submit and the Google Ad conversion in the first line registers a positive conversion in that platform. Google Analytics is what isn't showing the goal.

I'm NOT using the Google Tag Manager, but including the following global tag.

<script>   window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());   gtag('config', 'XXXXXXXX'); </script> 

As you can see here the lines I've marked as the attempts are as follows:

// This Google Ad Conversion works properly gtag('event', 'conversion', {'send_to': 'XXXXXXXX'}); // Attempt 1 gtag('event', 'Submit', { 'event_category': 'Form', 'event_label': 'Outdoor Kitchens Landing Oct 2019', 'value': 1 }); // Attempt 2 ga('send', 'event', 'Form', 'Submit', 'Outdoor Kitchens Landing Oct 2019', 1); // Attempt 3 ga('send', {   hitType: 'event',   eventCategory: 'Form',   eventAction: 'Submit',   eventLabel: 'Outdoor Kitchens Landing Oct 2019',   eventValue: 1 }); 

In order to make the ga code work, I had to include the following snippet in the HEAD.

<script>   window['GoogleAnalyticsObject'] = 'ga';   window['ga'] = window['ga'] || function() {     (window['ga'].q = window['ga'].q || []).push(arguments)   }; </script> 

The setup of the goal in Google Analytics is as follows (the label that is cut off reads "Outdoor Kitchens Landing Oct 2019"

<script data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>`<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxx"></ins> 

I have defined several advertisements in Google Ads where all their urls are parameterized with utm_source, utm_medium and utm_campaign. However, when I check the users who arrive from these url in Adquisition > All the traffic > Font/Source still appears like Source/Medium google/cpc and all the urls from the advertisements and extensions are parameterized.

What happen? Am I doing something wrong?

Edit I:

Here you've got an screen cap where inside the green rectangle there are visits correctly tagged from the advertisements but inside the red rectangle there are visits which are tagged like google/cpc when all the url from the advertisements have been parameterized to track it correctly.

I'm using google AdWords for my android application promotion from last 2 years. From the last 4-5 days, my google AdWords campaign runs fast and spending much higher money then it use to be. And that conversion ration is not showing in google console and now even on my Admob. Like Google Adwords showing 9000 install and console says 3400 install from that same day. And no effect on AdMob also.

What happens to Google AdWords? Is any other facing this issue? What wrong I'm doing?

I'm running a node.js app on a VPS and my advertising for that app was stopped, because Google Adwords has flagged my site for malicious software.

I've contacted them and they said it was because of an image that was sourced from a malicious site. https://jloog.com/images/medieval-clipart-cup-19.jpg

Now I've put that link there myself, so it was not injected or anything. I just wanted to use that image, which I found through Google Images. So, I didn't even upload it to my server.

The link has now been removed for over two weeks, but after resubmitting my campaigns for approval, my site is still being flagged for the same reason. I searched in the shell with grep in my entire project but that link is nowhere in my code.

So what is causing the problem and how can I resolve this situation?