Question

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

  • 20 December 2023
  • 3 replies
  • 72 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

 


3 replies

Userlevel 7
Badge +6

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!

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

 

Userlevel 7
Badge +6

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?

Reply