Skip to content

Instantly share code, notes, and snippets.

@jonathan-irvin
Last active October 10, 2018 18:41
Show Gist options
  • Save jonathan-irvin/da290d12f935acae213fe5711e3b2daf to your computer and use it in GitHub Desktop.
Save jonathan-irvin/da290d12f935acae213fe5711e3b2daf to your computer and use it in GitHub Desktop.
function analyticsLanding(pageName)
AnalyticsManager({
"pageName" : "tve:ppv:"+pageName,
"eVar20": "tve:ppv:"+pageName,
"eVar70": pageName,
"events": "event3,event70"
})
end function
function analyticsCallToActionEvent(event)
buttonNode = event.getRoSGNode()
if buttonNode.text <> invalid
AnalyticsManager({
"eVar67": "event info call to action event",
"eVar68": "event info:"+buttonNode.text,
"events": "event68"
})
end if
end function
function analyticsCallToActionManual(text)
AnalyticsManager({
"eVar67": "event info call to action event",
"eVar68": "event info:"+text,
"events": "event68"
})
end function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment