# Tracking visits to a secondary site (no form in there)

**URL:** <https://forum.mautic.org/t/tracking-visits-to-a-secondary-site-no-form-in-there/25809>\
**Category:** General Discussion\
**Created:** [October 24, 2022, 12:46pm UTC](https://forum.mautic.org/t/tracking-visits-to-a-secondary-site-no-form-in-there/25809 "2022-10-24T12:46:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmontero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/xmontero/32/7499_2.png) [@xmontero](https://forum.mautic.org/u/xmontero)\
**Post date:** [October 24, 2022, 12:46pm UTC](https://forum.mautic.org/t/tracking-visits-to-a-secondary-site-no-form-in-there/25809/1 "2022-10-24T12:46:00Z")

</div>

I have “site a” in wordpress with the plugin “wp mautic” and showing a form.  
When the user sends me an email address by submitting the form, I take them to a thank-you page and allow her to download a lead magnet wich is a direct link to the asset in mautic.

This lead magnet is a PDF. The PDF has links to another “site b” which is listed in my CORS settings in mautic and also in WordPress + “WP Mautic” plugin.

When I open up the registered user, I see the traking until “download” but I can’t see the visits in the new site.

How should I configure it?

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [October 24, 2022, 1:16pm UTC](https://forum.mautic.org/t/tracking-visits-to-a-secondary-site-no-form-in-there/25809/2 "2022-10-24T13:16:39Z")

</div>

Have you installed your mautic tracking script on the other site ?

---

<div class="post-metadata">

**Author:** ![xmontero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/xmontero/32/7499_2.png) [@xmontero](https://forum.mautic.org/u/xmontero)\
**Post date:** [October 24, 2022, 4:04pm UTC](https://forum.mautic.org/t/tracking-visits-to-a-secondary-site-no-form-in-there/25809/3 "2022-10-24T16:04:04Z")

</div>

This is my setup:

- Both public sites are wordpress. Say `https://site-a.com` and `https://site-b.com`
- The mautic installation is in a subdomain of “site a”, say `https://feedback.site-a.com`
- Both public sites have the “wp mautic” plugin.
- Both domains `https://site-a.com` and `https://site-b.com` are listed in the mautic config.
- Both wordpresses have configured the mautic script via the plugin, in both cases poiting to the same “base URL” = `https://feedback.site-a.com`

When I load the page in `https://site-a.com` and explore the source code in the browser, I see this:

PD: URL changed.

```
<script type="text/javascript" >
	function wpmautic_send(){
		if ('undefined' === typeof mt) {
			if (console !== undefined) {
				console.warn('WPMautic: mt not defined. Did you load mtc.js ?');
			}
			return false;
		}
		// Add the mt('send', 'pageview') script with optional tracking attributes.
		mt('send', 'pageview');
	}

		(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
		w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
		m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
	})(window,document,'script','https://feedback.site-a.com/mtc.js','mt');

	wpmautic_send();
</script>

```

Instead when I go to `https://site-b.com` I see this in the source code:

```
<script type="text/javascript" >
	function wpmautic_send(){
		if ('undefined' === typeof mt) {
			if (console !== undefined) {
				console.warn('WPMautic: mt not defined. Did you load mtc.js ?');
			}
			return false;
		}
		// Add the mt('send', 'pageview') script with optional tracking attributes.
		mt('send', 'pageview');
	}
</script>

```

I guess I should see also the “final part” which actually does the call also in site-b, but I don’t know what’s the next step in debugging why it does not appear IF the plugins seem well configured.

Any tip on where to continue investigating will be welcome!
