Skip to content

Commit

Permalink
Merge pull request #3 from dekalee/ref-removal
Browse files Browse the repository at this point in the history
Update MessageScriptGenerator.php
  • Loading branch information
sempixel committed Mar 14, 2017
2 parents 379fd74 + a8e6ad0 commit 7e8bc7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AdbackAnalytics/Generator/MessageScriptGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ public function generate()

$script = <<<EOS
(function (a,d){var s,t,u;s=d.createElement('script');
if(d.referrer){u=d.createElement('a');u.href=d.referrer;a=a+u.hostname;}
s.src=a;s.async=1;
t=d.getElementsByTagName('script')[0];
t.parentNode.insertBefore(s,t);
})("https://$url/$script.js?ref=", document);
})("https://$url/$script.js", document);
EOS;

return $script;
Expand Down

0 comments on commit 7e8bc7a

Please sign in to comment.