This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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. | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |