I'm getting an error `Event name not present` in c...
# support
a
I'm getting an error
Event name not present
in console coming from
logUtil.js
But all the events I'm pushing do have an event name. Is this coming from a configuration due a destination we selected? How can I better understand where this error is originating at?
m
Hey There! đź‘‹ Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
a
Workspace ID:
2H2pZ4MwtXarl0BZW40ZrcXpZqo
g
Hi @able-controller-17526 As far as I could see from your destinations configured and your website https://www.stockmarketeye.com/stock-tracker/ the error “Event name not present” is coming from the Google Ads destination. There are 2 possible reasons for the same. 1. You are not passing event name for a track call. JS SDK reference (line 136) 2. You are not passing the page name for a page call. JS SDK reference (line 200) I have attached the references to the Rudderstack Javascript SDK so you may identify the error and fix on your end.
a
Thanks for this @gentle-church-13189, I'll take a look at those references to better understand what's happening
🙌 1
Hey @gentle-church-13189, I've double checked our code and: • we don't have a page call except for the one done after loading the JS SDK (by default) • all
.track
calls have an event name attached to them (I can show code if necessary, we are using a wordpress site) I still don't understand how this error is being generated from our side. Could you or anyone at RS further help us in this instance?
Sorry to ping again @gentle-church-13189, but I'm still not able to fix this. What other things can I try?
Hey there, I haven't been able to solve this issue. It looks like the error is still being triggered on the page call only when Google Ads destination is involved. Here's our site. In the console I'm still seeing
Event name not present
. I believe we are correctly configuring everything. We are only triggering pageviews based on the code provided on the docs, meaning the only page call we are using is the default
e.page()
call provided in the snippet. I believe this error is not correctly representing the situation. Does anyone else has this type of problem? I'd appreciate any feedback.
Should I provide an event name to the default
page
call inside the CDN snippet, in order to fix this issue with Google Ads?
I'm just asking because I don't know what default value to provide in this instance, while the docs mentioned that this value is 'optional'. Even the default
e.page()
call doesn't have a default
name
The docs even mention that
The SDK automatically gathers the page name and url and passes them into the event payload.
So given we are only using the default page view, I'm not sure where the error could be.
b
hey you can give default name like
page_view
e.page(page_view)