Skip to content

Instantly share code, notes, and snippets.

View alexanderdean's full-sized avatar

Alexander Dean alexanderdean

View GitHub Profile
/**
* Original source:
* [[https://gist.github.com/oxbowlakes/970717]]
*
* Modifications:
* - use scala 7.0.5
* - use toValidationNel
* - use sequenceU and traverseU instead of the lambda trick
*
* Part Zero : 10:15 Saturday Night
@fblundun
fblundun / invocation-tag-example-2.0.0.html
Last active August 29, 2015 14:05
2.0.0 invocation tag example
<!--
In this example, there are two script elements on the page: one firing a page view and the other a structured event.
Each script separately contains the invocation tag for sp.js.
Having the invocation tag appear in each script element before any calls to snowplow_name_here guarantees that the
asynchronous queue is set up before any calls to snowplow_name_here push events onto it (regardless of how long it
takes sp.js itself to load).
Even though the tag is fired twice, it is designed to only set up the asynchronous queue and load sp.js once.
See https://github.com/snowplow/snowplow-javascript-tracker/blob/master/tags/tag.js for a more detailed explanation of the tag.
-->