Solved

Custom event creation

  • 15 June 2022
  • 1 reply
  • 91 views

Userlevel 3
Badge +5

Hi all,

I'm currently trying to create two custom events but it doesn't seem to be created it accurately.

I'm trying to calculate the depth of the scrolling in each page and the user's who are receiving push notifications.

I'm looking into the documentation just like we did for the Load Time. However, I get a message saying I have duplicated events event with two different javascript tags implemented.

Can you please help me with this?

The two events I'm talking about are:

  • All Pages - View - Notification - State
  • All Pages - View - Scroll - Depth

 

Best regards,

 

Bernardo

icon

Best answer by dlad 17 June 2022, 19:57

View original

1 reply

Userlevel 4
Badge +2

Hi Bernardo! The notification displays because there are two events:

  • All Pages - View - Notification - State
  • All Pages - View - Scroll - Depth

with the exact same definition (view any page, or view: *). This isn’t necessarily a bad thing and it won’t break anything, but it is duplicative. It looks like you have a couple of snapshot properties you want to capture on all page loads. You can simply add all of those snapshots to the same event (view any page) and the properties will capture for all page loads. 

But the way you have it now is fine, too. It just might make your Heap app definitions a bit more cluttered.

Reply