Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1329379

    Hi,

    Thank you for an awesome theme!

    I have a site where we have the initial cookie banner with two buttons; “Accept all” or “Accept only essential”. Is there a way to collect data on how people choose here, also if they do not. choose at all – obviously I cannot measure it in Analytics. If not , it would be an interesting development I think. .

    #1329434

    Hey Zest,

    Thank you for the inquiry.

    You can actually capture it using Google Analytics or Tag Manager. They have an option where you can capture clicks on elements with a specific class name or ID. You can use that to track the activity of the users who interact with the privacy buttons.

    Here is a quick overview on how to create a tracker for DOM elements.

    // https://support.google.com/tagmanager/answer/7683362?hl=en&ref_topic=9125128#dom_element

    Best regards,
    Ismael

    #1329769

    Hi,

    Actually this does not apply since you are not allowed to trigger Google Analytics before the user explicitly has allowed it.

    The only “allowed” way to do it is to store it within or around the “cookie settings module”…

    #1329893

    Hi,3

    Looks like you are correct. I didn’t think about that. But you might be able to save the click events (accept or not) in your database first, then create a process that only forwards that data to analytics once a user accepted the cookies. The previous data can be removed once it has been submitted so that it doesn’t duplicate the event count. Unfortunately, this kind of modification is beyond the scope of support and may require the help of a third party developer.

    Thank you for your understanding.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.