Skip to content
This repository was archived by the owner on Feb 9, 2018. It is now read-only.

Commit cc1ca1d

Browse files
committed
removed places that use _gaq.push()
1 parent db75ed2 commit cc1ca1d

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ app.locals.theme = function () {
123123
// helper functions
124124
app.locals.link_to = function (path, inner,css) {
125125
if (path) {
126-
var tracking = ' onclick="javascript:_gaq.push([\'_trackEvent\',\'outbound-neo4j\',\''+path+'\']);ga(\'send\',\'event\',\'outbound-neo4j\',\''+path+'\');" ';
126+
var tracking = ' onclick="javascript:ga(\'send\',\'event\',\'outbound-neo4j\',\''+path+'\');" ';
127127
return '<a class="'+(css||"")+'" href="' +path+ '" ' + (path.match("^http") ? ' target="_blank" '+tracking : '') + ">" +inner+ "</a>";
128128
}
129129
return inner;

public/assets/new/js/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,10 @@ $(document).ready(function(){
156156
});
157157
$("a[href^=http]").filter(function(){ !$(this).attr("href").indexOf("download_thanks");}).attr("target","_blank").click(function() {
158158
ga('send','event','outbound-neo4j',$(this).attr("href"));
159-
_gaq.push(['_trackEvent','outbound-neo4j',$(this).attr("href")]);
160159
});
161160
$("a.like").click(function(){
162161
var like = $(this);
163162
ga('send','event','neo4j-like-content',like.attr("data-like"));
164-
_gaq.push(['_trackEvent','neo4j-like-content',like.attr("data-like")]);
165163
like.css({fontSize: "1.5em"});
166164
like.animate({fontSize: "1em"},250);
167165
return false;

views/_download_thanks.ejs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,12 @@ $(document).ready(function() {
131131
link.attr("href",downloadLink).html("<i class='icon icon-download-alt'></i> "+displayLink).click(function() {
132132
logdata.action = "click";
133133
mktoMunchkinFunction('visitWebPage', { url: 'neo4j.org/download', params: url_params });
134-
_gaq.push(['_trackEvent','neo4j-download',downloadLink]);
135134
ga('send','event','neo4j-download',downloadLink);
136135
_kmq.push(['identify', marketo_id ||'' ]); // todo identify people
137136
_kmq.push(['record', 'neo4j-download', logdata]);
138137
log("download-click",logdata);
139138
});
140139
if (testing===null) {
141-
_gaq.push(['_trackEvent','neo4j-download',downloadLink]);
142140
ga('send','event','neo4j-download',downloadLink);
143141
_kmq.push(['identify', marketo_id ||'']); // todo identify people
144142
_kmq.push(['record', 'neo4j-download', logdata]);

views/learn/online_course.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@
235235
info["data"]=sessionId;
236236
_kmq.push(['record', 'neo4j-course-'+action, info]);
237237
ga('send','event','neo4j-course-'+action,JSON.stringify([email,name,info["company"],info["country"],info["state"]])); // ,online_course,sessionId
238-
_gaq.push(['_trackEvent','neo4j-course-'+action,JSON.stringify([email,name,info["company"],info["country"],info["state"]])]); // ,online_course,sessionId
239238
var marketoInfo = {Email: email, Activity:action};
240239
if (action=="register") {
241240
marketoInfo = {FirstName:info.firstname, LastName:info.name, Email: email, Company: info.company, Country:info.country,State:info.state,

0 commit comments

Comments
 (0)