Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @tonspar

    This is not an issue with our plugin but with the custom scripts inserted into the plugin.

    Investigation steps:
    1. Please ensure you have no other consoler errors, generated by other plugins or theme
    2. If only the main.js returns the error, please remove the code snippets from GDPR Cookie Compliance -> “Third party scripts” and “Advanced scripts” sections (you can copy and paste the snippets into a notepad or a file before removing, by this you can easily restore them).
    3. If the GDPR’s main.js still returns an error, you can open a support ticket on our support forum here: https://support.mooveagency.com/forum/gdpr-cookie-compliance/
    4. But if the error is gone, when you removed your custom JavaScript snippets, it means one of them has a syntax error, or returns 404. Because our GDPR Cookie Compliance loads your snippets with JavaScript, the error is marked as main.js, but the error is in one of your code snippets.
    5. If you have trouble fixing the code snippet which generates the console error, please speak to your developers or check the support of the snippet provider.

    In your specific case, we checked your code, and the issue can be fixed by using this code snippet:

    <script data-gdpr type='text/javascript' id='google-tag-manager-js-after'>
        window.dataLayer = window.dataLayer || [];
        function gtag() {
            dataLayer.push(arguments);
        }
        gtag('js', new Date());
        gtag('config', 'GA_MEASUREMENT_ID', {
            'send_page_view': true
        });
    </script>

    Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Error: SyntaxError: missing } after property list’ is closed to new replies.