File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Passed tracker namespace through to collector in Tracker Protocol (#126)
2020Moved to argmap-style tracker creation with 'newTracker' (#132)
2121Added support for cookie namespacing (#131) (TODO)
2222Added new tag which allows queue to be renamed (#130) (TODO)
23+ Added event vendor parameter sent through on querystring (#138)
2324
2425Version 1.0.3 (2014-06-27)
2526--------------------------
Original file line number Diff line number Diff line change 8383 * TODO: remove this in 2.1.0
8484 */
8585 function legacyCreateNewNamespace ( f , endpoint , namespace ) {
86- helpers . warn ( f , ' is deprecated.') ; //TODO: more instructions for switching
86+ helpers . warn ( f + ' is deprecated.') ; //TODO: more instructions for switching
8787
8888 var name ;
8989
Original file line number Diff line number Diff line change 3737/*
3838 * Get the name of the global input function
3939 */
40- function getAsynchronousQueue ( ) {
41- var queueName = window [ 'GlobalSnowplowNamespace' ] . shift ( ) ;
42- var queue = window [ queueName ] ;
43- return queue ;
44- }
4540
4641var snowplow = require ( './snowplow' ) ,
47- queue = getAsynchronousQueue ( ) ;
42+ queueName ,
43+ queue ;
4844
49- queue . q = new snowplow . Snowplow ( queue . q ) ;
45+ if ( window . GlobalSnowplowNamespace && window . GlobalSnowplowNamespace . length > 0 ) {
46+ queueName = window . GlobalSnowplowNamespace . shift ( ) ;
47+ queue = window [ queueName ] ;
48+ queue . q = new snowplow . Snowplow ( queue . q ) ;
49+ } else {
50+ window . _snaq = window . _snaq || [ ] ;
51+ window . _snaq = new snowplow . Snowplow ( window . _snaq ) ;
52+ }
You can’t perform that action at this time.
0 commit comments