# Lead tracking from other websites

**URL:** https://forum.mautic.org/t/lead-tracking-from-other-websites/3180
**Category:** Product Support
**Created:** [January 10, 2016, 3:27pm UTC](https://forum.mautic.org/t/lead-tracking-from-other-websites/3180 "2016-01-10T15:27:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![wwpelectroniks](https://avatars.discourse-cdn.com/v4/letter/w/cc9497/32.png) [@wwpelectroniks](https://forum.mautic.org/u/wwpelectroniks)
#### Post date: [January 10, 2016, 3:27pm UTC](https://forum.mautic.org/t/lead-tracking-from-other-websites/3180/1 "2016-01-10T15:27:26Z")

</div>

Hello,  
  
  
  
I configure correct the gif for lead tracking, through javascript script. And I receive anonymous leads from other sites, not only from my site. I use google cloud platform, this could be the problem? and how can we fix it?  
  
  
  
Thanks

---

<div class="post-metadata">

### Author: ![wwpelectroniks](https://avatars.discourse-cdn.com/v4/letter/w/cc9497/32.png) [@wwpelectroniks](https://forum.mautic.org/u/wwpelectroniks)
#### Post date: [January 10, 2016, 3:27pm UTC](https://forum.mautic.org/t/lead-tracking-from-other-websites/3180/2 "2016-01-10T15:27:26Z")

</div>

Hello,

I configure correct the gif for lead tracking, through javascript script. And I receive anonymous leads from other sites, not only from my site. I use google cloud platform, this could be the problem? and how can we fix it?

Thanks

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [January 11, 2016, 10:32am UTC](https://forum.mautic.org/t/lead-tracking-from-other-websites/3180/3 "2016-01-11T10:32:16Z")

</div>

You’d have to describe your situation in more detail. For example why do you use a javascript for tracking? How does the script look like? What is your website URL? What URL do the unwanted leads have?

---

<div class="post-metadata">

### Author: ![wwpelectroniks](https://avatars.discourse-cdn.com/v4/letter/w/cc9497/32.png) [@wwpelectroniks](https://forum.mautic.org/u/wwpelectroniks)
#### Post date: [January 14, 2016, 6:58pm UTC](https://forum.mautic.org/t/lead-tracking-from-other-websites/3180/4 "2016-01-14T18:58:27Z")

</div>

Yes for sure! I use the javascript script for the simplicity of configuration. I make some changes in it, for manage UTM tags properly.

`<script>
// Extract UTMs from URL
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
var utm_source = getUrlVars()["utm_source"];
var utm_medium = getUrlVars()["utm_medium"];
var utm_campaign = getUrlVars()["utm_campaign"];
// Conditions for create right URL
if (typeof(utm_source) == "undefined") {
    utm_source = ""
} 
else {
    utm_source = "&utm_source=" + utm_source
}
if (typeof(utm_campaign) == "undefined") {
    utm_campaign = ""
} 
else {
    utm_campaign = "&utm_campaign=" + utm_campaign
}
if (typeof(utm_medium) == "undefined") {
    utm_medium = ""
} 
else {
    utm_medium = "&utm_medium=" + utm_medium
}
// Mautic Lead tracking GIF
var mauticUrl = '{{MAUTIC SITE URL HERE}}';
var src = mauticUrl + '/mtracking.gif?page_url=' + encodeURIComponent(window.location.href) + '&page_title=' + encodeURIComponent(document.title) + utm_source + utm_medium + utm_campaign;
var img = document.createElement('img');
img.style.width = '1px';
img.style.height = '1px';
img.style.display = 'none';
img.src = src;
var body = document.getElementsByTagName('body')[0];
body.appendChild(img);
</script>`

I have other mautic installation, for other client, with same and works well. And its the same VPS configuration through BITNAMI google cloud instance.

As you can see in the screenshots, all monitorized chinese traffic comes from [google.com](http://google.com) hong kong. Obiously, my site isn’t google hong kong…

[Screenshot 1](https://drive.google.com/file/d/0B3j-5DPPn10bVV85N0VrSzFMdjA/view?usp=sharing)

[Screenshot2](https://drive.google.com/file/d/0B3j-5DPPn10bc1ZDd1JmRkFEX28/view?usp=sharing)

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [January 14, 2016, 7:11pm UTC](https://forum.mautic.org/t/lead-tracking-from-other-websites/3180/5 "2016-01-14T19:11:19Z")

</div>

Looks OK. No idea where the google URL tracking could came from. Maybe if you’d try to use the plain img tag for a while to make sure this script is not causing it.

---

<div class="post-metadata">

### Author: ![wwpelectroniks](https://avatars.discourse-cdn.com/v4/letter/w/cc9497/32.png) [@wwpelectroniks](https://forum.mautic.org/u/wwpelectroniks)
#### Post date: [January 14, 2016, 7:56pm UTC](https://forum.mautic.org/t/lead-tracking-from-other-websites/3180/6 "2016-01-14T19:56:30Z")

</div>

It’s confusing because other clients doesn’t cause problems. Anyway, Its not important. I get less than the first day. Probably dissapears soon.
