• Resolved kelsiehall

    (@kelsiehall)


    It is saying my Google Tag Manager code is incorrect when I know it is the correct one. It seems as if GTM code can now be one extra character than it used to be, but when I enter the GTM-XXXXXXXX code it says it is not valid. Please update this ASAP as I need to get the new GTM running on my site. I got my code directly off the GTM container.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kelsiehall

    Sorry to hear you are having this issue.

    It is indeed a bug in the plugin, Google recently added an extra string to the code which bypasses the validation, and our team is already working on a fix which we planned for Beehive 3.4.8 our upcoming version.

    A temporary solution is by using the script code as a mu-plugin:

    <?php 
    
    function tem_google_tag_manager_code() {
        ?>
            <script>
              // Full script goes here
            </script>
        <?php
    }
    add_action('wp_head', 'tem_google_tag_manager_code');

    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    We don’t have an ETA yet, but our developers are already working on it.

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @kelsiehall

    I would like to update you regards the current issue, we confirmed it is a bug in the plugin and happens when the new GTM 8 digit, unfortunately, the fix requires updating the plugin code but we already reported it to our developers.

    We can’t give an estimated time yet for the fix but subscribing to our roadmap https://wpmudev.com/roadmap/ is a good way to be posted about upcoming versions, once they are released, it is going to be described at changelog found on https://www.ads-software.com/plugins/beehive-analytics/#developers

    Since the bug was acknowledged, reported and tasked to be fixed, we are marking this as resolved, but feel free to let us know if you have any additional questions.

    Best Regards
    Patrick Freitas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Tag Manager Incorrect Code’ is closed to new replies.