From 94e0c5a4480a004ec157d3b784b3b196f6df438a Mon Sep 17 00:00:00 2001 From: H <409H@users.noreply.github.com> Date: Thu, 7 Sep 2017 21:29:08 +0100 Subject: [PATCH 1/2] Send referral data to EAL Sends referral data to EAL GA so we can easily look at current phishing campaigns work more efficiently at takedowns. --- src/phishing.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/phishing.html b/src/phishing.html index ec9a4fb..922a727 100644 --- a/src/phishing.html +++ b/src/phishing.html @@ -37,6 +37,13 @@ ga('create', 'UA-37075177-6', 'auto'); ga('send', 'pageview'); + //Send referral data to EAL + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); + ga('create', 'UA-68598031-1', 'metamask.io'); + ga('send', 'pageview'); From 75c173d0c209b6cb7d737716272ef7b715d699a8 Mon Sep 17 00:00:00 2001 From: H <409H@users.noreply.github.com> Date: Thu, 7 Sep 2017 21:32:45 +0100 Subject: [PATCH 2/2] add cross-domain linking to GA --- src/phishing.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/phishing.html b/src/phishing.html index 922a727..fd28a84 100644 --- a/src/phishing.html +++ b/src/phishing.html @@ -42,8 +42,10 @@ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); - ga('create', 'UA-68598031-1', 'metamask.io'); + ga('create', 'UA-68598031-1', 'auto' {'allowLinker':true}); ga('send', 'pageview'); + ga('require', 'linker'); + ga('linker:autoLink', ['harrydenley.com', 'metamask.io'], false, true);