Analytics
2.5K members online now
2.5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

How do I fix "Bad Event Tracking Code"

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

(not set) entry present in reports for property XYZ

 

And when I click on Details this is what shows up:

 

The Landing Pages report has a (not set) entry.

A pageview hit must precede event hits in order for the event hits to include the page that they fire from. When event hits aren't preceded by a pageview, Google Analytics doesn't have the page for the event hits, so their page is (not set).

Verify that tracking code for property XYZ sends a pageview hit before sending any events.

 

How do I fix this? As it is affecting my Alexa Rank as well. 

TIA.

Regards,

DM.

1 Expert replyverified_user

How do I fix "Bad Event Tracking Code"

Top Contributor
# 2
Top Contributor

Hi,

 

It seems that you are sending an event before a pageview was sent. Make sure that you have your GA tracking code in the head section of your pages and that you have a ga('send', 'pageview') command before your ga('send', 'event'...) command. Hope this helps.

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital