• Resolved viertobi

    (@viertobi)


    Hello,
    first of all, thank you for your plugin. Works nice on all my sites.
    But today I’ve got a problem with the custom tracker objects. I wanted to add a conversion tag to my script, but it puts a comma between the two tags, instead of a semicolon. I added an example of my problem.

    The line generated by you plugin:
    gtag(‘config’, ‘UA-00000000-0’, gtag(‘config’, ‘AW-000000000’););
    How the line should look like:
    gtag(‘config’, ‘UA-00000000-0’; gtag(‘config’, ‘AW-000000000’););

    Kind regards,
    Tobi

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter viertobi

    (@viertobi)

    Hello, got something mixed up. There is nothing wrong with the plugin. My problem is just, that I want to add a second tracking code.
    In the end it should look like this:

    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-00000000-0″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-00000000-0’);
    gtag(‘config’, ‘AW-000000000’);
    </script>

    Any idea how I can achieve this?

    Kind regards,
    Tobi

    Plugin Author Jeff Starr

    (@specialk)

    @viertobi Multiple tracking codes are not possible with the free version of the plugin, but the pro version can do it. Note if you have any questions about the pro version please contact me directly via the form at Plugin Planet (the forums here at ww.wp.xz.cn are for free plugins only). Thank you.

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

The topic ‘Custom Tracker Objects’ is closed to new replies.