Title: Google Ads conversion tracking added
Last modified: April 4, 2022

---

# Google Ads conversion tracking added

 *  Resolved [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/)
 * Hi,
 * Some months ago, I have setup Complianz to add Google Analytics tracking code.
   
   Today I need to add Google Ads conversion tracking code. So I have followed your
   instructions (topic : [https://wordpress.org/support/topic/google-ads-conversion-tracking-code/#post-15470268](https://wordpress.org/support/topic/google-ads-conversion-tracking-code/#post-15470268))
 * I did a scan and a synchonisation.
    New cookies from Google Ads are well detected.
 * If I check source code, I see 2 global site tag :
    – one for Google Analytics–
   one for Google Ads
 *     ```
       <script type="text/plain" data-service="google-analytics" async data-category="statistics" src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
       <script type="text/plain" data-category="statistics">
       window['gtag_enable_tcf_support'] = false;
       window.dataLayer = window.dataLayer || [];
       function gtag(){dataLayer.push(arguments);}
       gtag('js', new Date());
       gtag('config', 'GA_TRACKING_ID', {
       	cookie_flags:'secure;samesite=none',
   
       });
       </script>
       ```
   
 *     ```
       <script type="text/plain" data-category="marketing">
       window.dataLayer = window.dataLayer || [];
       function gtag(){dataLayer.push(arguments);}
       gtag('js', new Date());
       gtag('config', 'AW-CONVERSION_ID', {
       	cookie_flags:'secure;samesite=none'
       });
       </script>
       ```
   
 * I’m just wondering if it is okay to have these 2 global site tags ?
    Thanks for
   your help

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/page/2/?output_format=md)

 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15526435)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * These snippets should indeed work. Do you have Consent per Service enabled? If
   so, we might need to change the last snippet a little bit.
 * Consent per Service is available under Consent -> Services in the wizard FYI.
 * Let me know!
 * regards Aert
 *  Thread Starter [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15527296)
 * Thanks Aert for your quick answer.
    I thought there should be just 1 snippet 
   including Google Analytics and Google Ads tags, as recommended by Google, but
   if you say these 2 snippets should work, that’s fine by me 🙂 I’ve checked and
   the option “Consent per Service” is not enabled. Before I enable it, could you
   tell me the purpose of doing that, and what would be the next step please ?
 * Thank you and have a nice day !
    -  This reply was modified 4 years, 2 months ago by [Zougou](https://wordpress.org/support/users/zougou/).
    -  This reply was modified 4 years, 2 months ago by [Zougou](https://wordpress.org/support/users/zougou/).
    -  This reply was modified 4 years, 2 months ago by [Zougou](https://wordpress.org/support/users/zougou/).
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15528495)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * You don’t need to enable Consent per Service, it’s just an option without effect
   on this purpose.
 * The snippets are separated because one needs consent on Statistics, the other
   one on Marketing category. You can combine them and choose one category if needed,
 * regards Aert
 *  Thread Starter [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15528639)
 * Ok thank you for your explanations.
 * I have one other question please :
    If I activate all categories in cookies banner(
   Marketing and Statistics), Google Ads and Google Analytics are used. Then, if
   I choose to deactivate Marketing and Statistics categories, the cookies from 
   Google Ads and Google Analytics remains active (although cmplz_marketing and 
   cmplz_statistics have ‘deny’ value) Should I do something special to fix this?
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15536359)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * Excuse the slight delay in response time, we will try reproducing behavior as
   you describe it.
 * In the meantime, would it be possible to share an URL to the site where this 
   occurs, so we can also look further into this?
 * Kind regards,
    Jarno
 *  Thread Starter [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15536367)
 * Hi Jarnovos,
 * No problem for the delay, we all have a life 🙂
    Ii it possible to share URL 
   in a private way ?
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15540364)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * You could use; [https://onetimesecret.com/](https://onetimesecret.com/)
 * It can only be checked once.
 * regards Aert
 *  Thread Starter [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15540422)
 * Hi Aert,
 * Thanks for the tool.
    Here’s the secret link : [https://onetimesecret.com/secret/swqqzk9vl2xvyctzh88b8nq4sibo7cw](https://onetimesecret.com/secret/swqqzk9vl2xvyctzh88b8nq4sibo7cw)
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15547964)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * Please install the updated branch of the plugin found here, you can download 
   it by clicking the green “Code” button > Download ZIP. [https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/google-ads-and-adsense-as-service](https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/google-ads-and-adsense-as-service)
 * As Complianz places the snippets on your site, this should work out-of-the-box
   after enabling Consent per Service _(Wizard > Consent > Services)_, re-scanning
   for cookies to ensure that the Analytics and AdSense cookies are listed _(Consent
   > Cookie Scan)_, and running another Sync with CookieDatabase _(Consent > Cookie
   descriptions)_.
 * Please note: it can take ~1 hour for the changes (to the list of cookies that
   are marked for deletion upon revoking consent) to be registered, due to caching.
 * In the meantime I would highly recommend taking a look at this article about 
   the CookieShredder, which explains in greater detail how the feature works exactly:
   [https://complianz.io/introducing-the-cookieshredder/](https://complianz.io/introducing-the-cookieshredder/)
 * And of course, let us know if there are any remaining questions/issues.
 * Kind regards,
    Jarno
 *  Thread Starter [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15558373)
 * Hi Jarnovos,
    Thanks for your help, I’ll do as recommended. For the update of
   the plugin, can I simply update to 6.1.5 from WordPress dashboard ? Or should
   I absolutely update with package available on Github ?
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15558494)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * The changes in the plugin version found on the attached GitHub page have not 
   been included in 6.1.5 yet, so you would indeed have to install the GitHub version
   for that.
 * After these changes have been thoroughly tested, they can be included in a future
   version of the plugin.
 * Kind regards,
    Jarno
 *  Thread Starter [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15561497)
 * Hi,
 * I did the update (github archive), activate “Consent per Service”, rescan and
   resync.
 * Here are the scenarios I have tested :
    – First connexion : no cookies Google
   Analytics, no cookies Google AdSense ==> OK – I activate “Statistics” and “Marketing”
   categories ==> _ga / _ga_* / _gcl_au cookies are well installed – I deactivate“
   Statistics” and “Marketing” categories ==> _ga and _gcl_au cookies are instantly
   removed but _ga_* cookie remains active I have waited 2 hours, and _ga_* cookie
   was stil active
 * The only way I found to remove the _ga_* cookie is to reopen the “Manage your
   cookies” banner and just click on “Preferences” button
    => Then the _ga_* cookie
   is well removed
 * Is it normal behaviour ?
    Thanks
    -  This reply was modified 4 years, 1 month ago by [Zougou](https://wordpress.org/support/users/zougou/).
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15567981)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * I tried, and you’re right. The cookies are checked and removed at an interval
   of every 2 seconds.
 * How the cookie is gone after clicking the preferences button is special, but 
   I would guess a reload, or other interaction might have the same result.
 * It might Google updates the console only on interaction or changes in the DOM.
   We will have a look, for now it all seems to work as intended.
 * regards Aret
 *  Thread Starter [Zougou](https://wordpress.org/support/users/zougou/)
 * (@zougou)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15568284)
 * Hi Aert,
 * Thanks for your answer.
    About whay you said, I did a new test : 1/ accept all
   cookies 2/ deny all cookies (_ga_* cookie remains active) 3/ navigate to other
   pages to force DOM refresh => _ga_* cookie remains active
 * If I check with Tag Assistant Legacy (Chrome extension), Google Analytics is 
   detected.
 * My concern is to know if the website is really GDPR compliant in this scenario?
   
   Thank you, Have a nice day
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/#post-15575081)
 * Hi [@zougou](https://wordpress.org/support/users/zougou/),
 * I could reproduce the case you described in your earlier post: where the `_ga_*`
   cookie remained “unshredded” immediately after revoking consent, until an action
   such as clicking Preferences is performed, after which it is deleted as well.
 * Though, in my tests I cannot seem to reproduce the behavior where visiting other
   pages **after** revoking consent & this `_ga_*` cookie being deleted, would result
   in the _ga_* cookie being set once more.
 * As long as Google Analytics is being blocked after the user revokes their consent,
   this will be OK. You are not required to remove previously set cookies from your
   visitor’s browser.
 * Hope this helps/clarifies!
 * Kind regards,
    Jarno

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/page/2/?output_format=md)

The topic ‘Google Ads conversion tracking added’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 16 replies
 * 3 participants
 * Last reply from: [Zougou](https://wordpress.org/support/users/zougou/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/google-ads-conversion-tracking-added/page/2/#post-15579025)
 * Status: resolved