• Resolved lambertini

    (@lambertini)


    I currently have analytics setup on my site using BOTH Universal Analytics and the new GA4. In the Complianz plugin under Consent > Statistics – configuration if you select yes to the question Do you want Complianz to add Google Analytics to your website? You can then enter the analytics ID, is it possible to add both the UA and GA4 ID here or can only 1 ID be used?

    Many Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @lambertini,

    You can use one UA/GA4 property in the Complianz Wizard (and a Google Ads AW-CONVERSION_ID).

    But you can load other ID’s/properties outside of Complianz and modify their <script></script> tags as below to specify the consent category:

    // Statistics
    <script type="text/plain" data-category="statistics"></script>
    // Marketing
    <script type="text/plain" data-category="marketing"></script>

    Please also see this article for an example: https://complianz.io/adding-global-site-tag-gtag-js-with-granular-consent/

    Kind regards,
    Jarno

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @jarnovos, @lambertini,

    You can connect the UA code to your new GA4 code in your Google Analytics dashboard. This way, you can use only the GA4 code. There are plenty of videos and guides online, but really depends on your wishes, so I can’t give a general approach.

    Hope this helps,
    regards Aert

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘GA4 Analytics ID and UA Analytics ID in Complianz’ is closed to new replies.