Skip to main content
Question

Failed to create a measurement event in Google Analytics 4: Unexpected token j in JSON at position 0

  • December 20, 2023
  • 3 replies
  • 104 views

Hi, I’m trying to connect send email subscriber data from a flflodesk sign up form to Ga4 and getting this ‘error Unexpected token j in JSON at position 0’ when testing

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • December 20, 2023

Hi there @nami.julia,

Welcome to the Community! 🎉

I’m so sorry for the troubles with the Zap.

Before we dig deeper, could you please send a screenshot of the “Action” section that shows all of its fields of your Google Analytics 4 action?

4523f2b0ee82a0975f8e2899e495d514.png
(view larger)

Please keep me posted!


  • Author
  • Beginner
  • December 20, 2023

Thanks for your reply! Here’s what’’s in there at the moment...

 


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • December 21, 2023

Hi there @nami.julia,

Thanks for the screenshot.

The “Event” field expects a JSON object with "name" and "params" properties. The "params" should also be a JSON object. Here's an example of how the event data should look like:

Please see the events reference for more information.

Could you please try updating the event data in your Zap to match this format and let me know if this resolves the issue?