We started a Instagram campaign that included Google utm tracking queries on Instagram image link advertising. The utm code is set up correctly, but the url links from the Instagram ads are going to random pages in Umbraco, rather than the redirected url with tracking code. Some of the clicks are going to "/" or "/1234.aspx" or some other random number. What's odd is that if you follow the link, it actually goes to a page in Umbraco.
Is there some case where "http://yourdomain.com/1234.aspx" is related to an actual page in Umbraco?
It only does this with Instagram, not Facebook or Twitter though.
"Is there some case where "http://yourdomain.com/1234.aspx" is related
to an actual page in Umbraco?"
Yes. Every page in Umbraco has a unique numeric ID - you can see the ID in the URL when you edit a page or via the Info tab in Umbraco (called Properties in old versions). So the 1234.aspx is actually the "real" URL for pages, as Umbraco looks up what content to serve from this ID. The actual "friendly" URLs you see are just aliases to this.
Why your tracking is picking up on these URLs I'm not sure. But there are a couple of things you could do:
You could disable Umbraco being able to use 1234.aspx URLs. You can do this by editing umbracoSettings.config and look for thewebRouting entry and change it to read:
disableFindContentByIdPath="true"
But this will lead to a 404 for those links.
A better option, though, might be to add a Canonical Link to your page to tell web indexers what your preferred URL for the page is - see https://yoast.com/rel-canonical/
You can generate a canonical URL fairly easily in Umbraco with the following code added to the HEAD of your template(s);
Issues with Instagram and Google Analytics
We started a Instagram campaign that included Google utm tracking queries on Instagram image link advertising. The utm code is set up correctly, but the url links from the Instagram ads are going to random pages in Umbraco, rather than the redirected url with tracking code. Some of the clicks are going to "/" or "/1234.aspx" or some other random number. What's odd is that if you follow the link, it actually goes to a page in Umbraco.
Is there some case where "http://yourdomain.com/1234.aspx" is related to an actual page in Umbraco?
It only does this with Instagram, not Facebook or Twitter though.
Hi Steve
Did you resolve this one? We have noticed some pages appearing this way recently as well e.g. 1234.aspx
Greg
Yes. Every page in Umbraco has a unique numeric ID - you can see the ID in the URL when you edit a page or via the Info tab in Umbraco (called Properties in old versions). So the
1234.aspx
is actually the "real" URL for pages, as Umbraco looks up what content to serve from this ID. The actual "friendly" URLs you see are just aliases to this.Why your tracking is picking up on these URLs I'm not sure. But there are a couple of things you could do:
You could disable Umbraco being able to use 1234.aspx URLs. You can do this by editing umbracoSettings.config and look for the
webRouting
entry and change it to read:disableFindContentByIdPath="true"
But this will lead to a 404 for those links.
A better option, though, might be to add a Canonical Link to your page to tell web indexers what your preferred URL for the page is - see https://yoast.com/rel-canonical/
You can generate a canonical URL fairly easily in Umbraco with the following code added to the HEAD of your template(s);
is working on a reply...