Analytics
1.7K members online now
1.7K 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

nonInteraction event does not work

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I'm facing the following problem:

 

I use two events, one to track if someone clicks on a link and one to check, if there are no search results.

 

The one for the clicks works perfectly. But the other one not at all.

 

To check if there are no search results on my site, I use:

 

if(count($arrayAll)==0){

echo
"<script>
        ga('send', 'event', 'search', 'none', '', 0, {nonInteraction:true});
</script>";
}

 

 

The browser shows - if there are no results:

<script>ga('send','event','search','none','',0,{nonInteraction:true});</script>

 

But it does not work -  I can't see real-time events in Analytics.

 

Does anybody know what the problem could be?

 

Thanks for any help!

 

Greetings

 

 

1 Expert replyverified_user

Re: nonInteraction event does not work

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭
Hi Dennis,

I don't think this issue is related to <noninteraction>. Are you using php code to insert the ga script into the page's static html?
If so, the event may not be triggered properly. Check this post http://bit.ly/1RP63TP for an idea of correct implementation.

Thanks!

Marko

Re: nonInteraction event does not work

Top Contributor
# 3
Top Contributor
Hi Dennis, how are you concluding that the Non-Interaction is not working? Note that in Real-Time reports, you won't be able to see the event data. You will see the "blip" move across the Events graph, but that's it.

You would install GA Debugger for Chrome to see if your hit is going through, or you could also check in your dev console to see if the hit goes through.

Hope this helps.
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

Re: nonInteraction event does not work

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Hey Nicky,

Sooo nonInteraction : true events are not visible in Real-Time but nonInteraction: false events are? Why is that?

Kind regards,
Peter

Re: nonInteraction event does not work

Top Contributor
# 5
Top Contributor
Hi, Peter,

I'm not sure for the reason behind this. You can try it yourself to see this.
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

nonInteraction event does not work

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Hi Dennis,

 

NonInteractions events do not appear in 'Real Time' if look in 'Active User' view. But you can find it in 'Events (last 30 minutes)' view.

in more detail, you can read here: https://datarunsdeep.com.au/blog/dont-events-show-real-time-reports