Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    please enable remote debugging and post page address:
    https://ww.wp.xz.cn/support/topic/ad-inserter-support-before-you-ask-for-help/

    What is the lifetime of the cookie?

    Plugin Author Spacetime

    (@spacetime)

    Are you still having issues?

    Thread Starter xamlkdslkjlkmkl

    (@alliquin)

    We setup it like that:

    <script>
    function setCookie (name,value,hours) {
        var expires = "";
        if (hours) {
            var date = new Date();
            date.setTime(date.getTime() + (hours*60*60*1000));
            expires = "; expires=" + date.toUTCString();
        }
        document.cookie = name + "=" + (value || "")  + expires + "; path=/";
    }
    setCookie ('utm_source_session', 'cookie_value', 1)
    </script>

    But when someone came there later (f.e. second day) with UTM utm_source=bing.com, it shows him wrong ads (session will expire and will not recover after another access through these UTM).

    Thank you.

    Plugin Author Spacetime

    (@spacetime)

    Unless you enable remote debugging and post page address nobody can help you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Different ad based on UTM tags’ is closed to new replies.