• Resolved mrpoter

    (@mrpoter)


    Hello Team,

    I noticed an issue in the latest version of the plugin. The endpoint seems mismatched, and the global variable embedpress_analytics is not defined.

    In the JS file, the code currently shows:

    restUrl: embedpress_analytics?.rest_url || '/wp-json/embedpress/v1/analytics/',

    However, this causes errors since embedpress_analytics is not defined. The correct approach would be to define embedpress_analytics first and then export it to JS.

    Could you please review and fix this?

    Thanks!

    please check and update it
    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mrpoter

    (@mrpoter)

    ppets with caution

    Replace <code class=” “><?php echo json_encode($embedpress_analytics_data); ?> with the actual method used to output the <code class=” “>embedpress_analytics data in your specific environment.Summary

    The <code class=” “>Uncaught ReferenceError: embedpress_analytics is not defined error occurs because the <code class=” “>embedpress_analytics variable, which is expected to be available when <code class=” “>analytics-tracker.js runs, has not been defined in the JavaScript scope. The fix is to ensure that <code class=” “>embedpress_analytics is defined and available globally before the <code class=” “>analytics-tracker.js script is loaded and executed.




    Hello mrpoter,
    Greetings. Hope you are doing well.

    Thank you so much for reaching out to us and sharing the details with us. I am glad to inform you that the issue you mentioned is successfully addressed by our Dev team and, it is resolved in our Dev version of the EmbedPress plugin. To resolve this issue, please download the EmbedPress plugin from here: https://d.pr/f/1qzvan, and install it on your website.

    This will definitely resolve your issue. Please let us know the update after checking on your end.

    We eagerly await your response.
    Thank you.

    Hello mrpoter,
    Hope you are doing well.

    We hope everything is well on your end. 😊

    We haven’t heard from you in a while, so please let us know if you’re still facing any issues. If your problem is resolved, we’d appreciate a quick review of our plugin via the link below: 

    https://ww.wp.xz.cn/support/plugin/embedpress/reviews/#new-post

    We eagerly anticipate your valuable feedback, as it will enable us to enhance our services and support. Feel free to reach out to our support team anytime for assistance. 😊

    Thank you.
    Wishing you a wonderful day! 😊

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

The topic ‘embedpress_analytics is not defined’ is closed to new replies.