Title: Error: SyntaxError: missing } after property list
Last modified: May 4, 2022

---

# Error: SyntaxError: missing } after property list

 *  Resolved [tonspar](https://wordpress.org/support/users/tonspar/)
 * (@tonspar)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-syntaxerror-missing-after-property-list/)
 * Hello,
    I am using your plugin and thank you very much for it.
 * The error “SyntaxError: missing } after property list” starts appearing in web
   browser console.
 * I have not found the way how “repair” it.
 * The error is located here: [https://www.klempirskenaradi.cz/wp-content/plugins/gdpr-cookie-compliance/dist/scripts/main.js?ver=4.8.3:1](https://www.klempirskenaradi.cz/wp-content/plugins/gdpr-cookie-compliance/dist/scripts/main.js?ver=4.8.3:1)
 * The Firefox notes this location of the problem: main.js:1:2306.
 * Can you help me, please.
 * Thank you very much in advance.
 * Jiří Šír
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-syntaxerror-missing-after-property-list%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-syntaxerror-missing-after-property-list/#post-15632138)
 * Hi [@tonspar](https://wordpress.org/support/users/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/](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.

 * ![](https://ps.w.org/gdpr-cookie-compliance/assets/icon-256x256.png?rev=2376316)
 * [GDPR Cookie Compliance - Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law](https://wordpress.org/plugins/gdpr-cookie-compliance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-compliance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-compliance/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/error-syntaxerror-missing-after-property-list/#post-15632138)
 * Status: resolved