Tagged: banner, borlabs, consent, cookie, google analytics, properties
-
AuthorPosts
-
December 9, 2020 at 11:34 am #1265958
Hello,
my company wants to use a WordPress Enfold Setup to publish different landingpages. For example:
- http://www.example.de/pizza-landingpage
- http://www.example.de/pasta-landingpage
- http://www.example.de/burger-landingpage
Every landingpage should have it’s own Google Analytics Property. Our marketing needs this kind of setup. For example:
- http://www.example.de/pizza-landingpage –> Google Analytics Property 1
- http://www.example.de/pasta-landingpage –> Google Analytics Property 2
- http://www.example.de/burger-landingpage –> Google Analytics Property 3
The Problem: We’re using the plugin Borlabs Cookies. In Borlabs we can only use Google Analytics Key(s) for the whole domain. We cannot define different cookies for different paths.
The only solution I found was to manipulate the JavaScript-Settings. For example:
- if (window.location.href.search(“/pizza-landingpage/”) >= 1) { // Property 1}
- if (window.location.href.search(“/pasta-landingpage/”) >= 1) { // Property 2}
- if (window.location.href.search(“/burger-landingpage/”) >= 1) { // Property 3}
I do this within the Borlabs Settings in normal backend.
It works. But it seems a bit fishy. Unfortunaly I don’t find a similar problem in web. Did anyone have an idea? Or isn’t it fishy and all is fine?
I know, we could add Analytics snippets to single pages. But this will undermine the Borlabs Cookie Consent Banner an we come in trouble with the privace policy. Thats the problem I want to fix.
Thank you!
- This topic was modified 3 years, 11 months ago by gfnzit. Reason: Editor dont like my HTML-Breaks
December 10, 2020 at 7:11 am #1266198 -
AuthorPosts
- You must be logged in to reply to this topic.