doofinder
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "doofinder", | ||
"description": "Javascript Library for Doofinder Search API", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "dist/doofinder.js", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -39,2 +39,3 @@ | ||
this.client = client; | ||
this.hashid = client.hashid; | ||
this.widgets = []; | ||
@@ -393,6 +394,6 @@ if (widgets instanceof Array) { | ||
if (gaCommand['eventAction'].indexOf('search') === 0) { | ||
window._gaq.push(['_trackPageview', '/doofinder/search/' + options.hashid + '?query=' + gaCommand['eventLabel']]); | ||
} else { | ||
ga = window[window.GoogleAnalyticsObject] || window.ga; | ||
return window._gaq.push(['_trackPageview', '/doofinder/search/' + this.hashid + '?query=' + gaCommand['eventLabel']]); | ||
} | ||
} else { | ||
ga = window[window.GoogleAnalyticsObject] || window.ga; | ||
if (ga && ga.getAll) { | ||
@@ -402,3 +403,3 @@ trackerName = ga.getAll()[0].get('name'); | ||
if (gaCommand['eventAction'].indexOf('search') === 0) { | ||
return ga(trackerName + '.send', 'pageview', '/doofinder/search/' + options.hashid + '?query=' + gaCommand['eventLabel']); | ||
return ga(trackerName + '.send', 'pageview', '/doofinder/search/' + this.hashid + '?query=' + gaCommand['eventLabel']); | ||
} | ||
@@ -405,0 +406,0 @@ } |
(function() { | ||
module.exports = { | ||
version: "1.0.5", | ||
version: "1.0.6", | ||
Client: require("./client"), | ||
@@ -5,0 +5,0 @@ Handlebars: require("handlebars"), |
{ | ||
"name": "doofinder", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Javascript Library for Doofinder Search API", | ||
@@ -5,0 +5,0 @@ "main": "lib/doofinder.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89083
1947