...
Code Block |
---|
nt('send', 'event', {
eventCategory: 'Outbound Link',
eventAction: 'click',
eventLabel: event.target.href'advertising click'
}); |
eventCategory
, eventAction
and eventLabel
can be any string value, but there is some limitations:
eventCategory
and eventLabel
will be trimmed to 75 characters if exceeded, bounding spaces will be removed.
eventAction
will be trimmed to 50 characters if exceeded, bounding spaces will be removed.
Every the time function will be called it will generate a new event in the statistics. The event will be saved within N.Rich analytics system to the table main_stats_final_v6
with event_name='PAGE_EVENT'
and can be used in the various dashboards.
Examples of events:
Code Block |
---|
|
nt('send', 'event', {
eventCategory: 'Remarketing',
eventAction: 'purchase',
eventLabel: '$50.34'
}); |
Code Block |
---|
|
nt('send', 'event', {
eventCategory: 'Engagement',
eventAction: 'page viewed',
eventLabel: 'Discounts page'
}); |
Code Block |
---|
|
nt('send', 'event', {
eventCategory: 'Engagement',
eventAction: 'Scroll',
eventLabel: 'half page scrolled'
}); |
Code Block |
---|
|
nt('send', 'event', {
eventCategory: 'Engagement',
eventAction: 'Video view',
eventLabel: '20 seconds viewed'
}); |
Code Block |
---|
|
nt('send', 'event', {
eventCategory: 'Link action',
eventAction: 'click',
eventLabel: 'Ref to buy clicked'
}); |