-
AuthorPosts
-
January 8, 2021 at 12:02 pm #1271026
Hello Support,
parallel to Universal Analytics (UA-) we would like to install the new Google Analytics 4 (G-) tracking to our website but I have some doubts that we will be able to give the visitor the possibility to opt-out with the enfold tools. Any idea how to enable the visitor to disable the tracking for both analytics tools. Any plans for providing a solution in a (near) future update?Thanks a lot
GregorJanuary 12, 2021 at 3:53 am #1271723Hey gregorh,
Thank you for the inquiry.
We have not included it in the privacy options yet, but users should be able to simultaneously disable or enable both analytics scripts using the current cookie toggle for the tracker. This is possible as long as both scripts are inside the Enfold > Google Services > Google Analytics.
Both version of analytics generate the same cookies, so using the Custom Cookie option may not work. But if you would like to create your custom solution, the function that renders the analytics script is inside the functions-enfold.php file. Just look for the avia_print_tracking_code function.
We are not actually sure if it is possible or if it is necessary to use both versions of the analytics script in the same site.
Best regards,
IsmaelAugust 3, 2022 at 6:03 pm #1360513Dear Team,
further to the above, I´ve learned it would make sense to track for the time being GA4 plus UA codes in parallel. Google offerrs this option as well.-> Is the above option possible as well in the enfold settings/Google services/GA? If so, what syntax? E.g. like the following or so?
G-xxxxx; UA-yyyy
Thx and best regards Tilman
August 3, 2022 at 6:20 pm #1360520Hi Tilman,
I’m not sure if that is possible to be honest with you, but you can try to add both scripts in full to the Google Analytics box. If it doesn’t work, then you can always add them using a function in functions.php:
function oestersund_add_tracking_code(){ ?> YOUR SCRIPT GOES HERE <?php } add_action('wp_head', 'oestersund_add_tracking_code');
Best regards,
RikardSeptember 27, 2022 at 11:16 am #1366508Hi all,
Dose it worked to enter both scripts?
Or is there now a proven way to implement both Tracking-Codes in ?
Best regards
Omar- This reply was modified 2 years, 1 month ago by OmarDador.
September 27, 2022 at 4:26 pm #1366583 -
AuthorPosts
- You must be logged in to reply to this topic.