Affiliate Link Error with AMP - wordpress

I'm using SEOFrog on Wordpress to show the AMP version of the website. It works great, but there is one little problem, especially for affiliate websites such as Plus500 (with a very strict tracking).
When I'm visiting the AMP version of my website (for example: google.it/amp/www.mercati24.com/come-funziona-plus500/amp/?client=safari) and I click on one of the affiliate links of the broker Plus500, such as plus500.com/it/Marketing/Promotion1.aspx?id=11693&tags=Mercati24Post061213&pl=2 . The affiliation campaign shows an error, because the domain is not mercati24.com but google.it instead.
I don't think the broker will whitelist https://www.google.it/amp/www.mercati24.com/, so is there any way to fix this error by just changing the code on the website?
Thanks in advance,
M

Link to non-AMP page which will then redirect to affiliate link.
Referer will be your domain.

AMP pages are cached by Google; in fact - when you create an AMP version of your webpage - you make Google the owner of that page. As a result, when a user clicks on a link in an AMP page, the referer is google.com instead of your domain. This behaviour makes AMP pages not really suitable for tracking purposes, as they are always served from google.com; for such scenario’s (like tracking and affiliate programs) you need to serve pages from your own domain, not from Google’s AMP cache servers.

Related

Wordpress Redirection Plugin conflicts with Google Ads

I have a wordpress website in which I am using the Redirection plugin to handle all the redirects.
I am also running a paid Google Ads Campaign which will land on one of my website pages with the google parameters like gclid and campaign type. But due to some reason these redirects are dropping the gclid.
Can anyone help me with how I can resolve this issue.
Additionally, when I disable the redirect links from the Plugin, it works in certain browsers while many browsers are still showing the old redirects. Does google take sometime to refresh this links? Where does browser store all the redirect links set through redirect plugin.
Has anyone ever faced this type of issue?
I tried disabling the links set in the Redirect Plugin but it was not consistent in all the browsers.
In some browsers, it worked fine while in others it was not working at all.
I am checking the gclid parameter in the network tab, which comes as a query-string attached to my landing page.

Will a Sitemap in localhost create duplicate content issue?

For my Wordpress.org site I use the Google Sitemap Generator plugin by Arne B. While in localhost I activated the plugin and it works.
I usually update my website in localhost and then upload the database to my webhost. So now I am wondering if Google search results will now enter both urls below?? Reason I am asking is because I am afraid Google will consider this as duplicate content.
http://127.0.0.1/beef-recipe-1/
http://www.actual-website.com/beef-recipe-1/
Google can't access your localhost (127.0.0.1) so it will most likely ignore those URL's.
If you are afraid of the above situation the best thing you can do is to delete all the previous sitemaps and re-generate a new one while your site is online. By going to Google's webmasters tools Resubmit the sitemap if necessary and crawl your websites main domain link for e.g: mydomainname.com and let Google crawl all direct links from associated to the homepage.
This way you will not lose rankings on Google while it may become a helping factor to your website.
Cheers!

Google Analytics - block outgoing links

I'm building a site which contains external links, however, I don't want any links from my website to show up in another site's Google Analytics tracking.
For example, if www.site1.com links to www.site2.com I don't want the link from www.site1.com to show up as link referral or source.
Not sure if this is possible.
I couldn't find this elsewhere, but not sure if I'm using the correct search terms(?)
You can override the traffic source/medium via utm parameters.
Check out this page for help in generating the URLs.

Google Analytics not tracking a Wordpress directory

Just wondered if there is a known issue with GA having trouble tracking a site which has a Wordpress directory?
It seems to be able to track all of my other pages on the site, but we have a /news/ directory which is powered by Wordpress and it doesn't pick this up at all. It is obviously an issue with the fact that this directory is a Wordpress blog, but there must be a way to track it with all of the other pages.
Aaahhh... Sounds like the google analytics tracking code is present on your main site pages, but is not included in the wordpress template that's applied to that sub-section of your site.
The GA tracking code must be visible to google on every page you want to have tracked.
Try 'View Source' in your browser, and check wether the analytics tracking code is present.
If not, you could hard-code the GA tracking code in, or use one of the free WordPress Plugins to do it for you, like 'Google Analytics':
http://wordpress.org/extend/plugins/googleanalytics/
Hope this helps - post back if you're still having problems!
Rick
It may not be related, but did you check if your blog is indexable? Under Settings -> Privacy you can check if its enabled.
Another option is to install a google analytics plugin for the blog. If you enter the same credentials from your already-in-use GA it should be combined. I'm using this one on my blog and its working.

Google Analytics appending index.cfm to end of my URLs

For some reason Google Analytics is appending index.cfm to the end of all of my URLs when I look at them in GA. The domain used to be ColdFusion based, but is now a WordPress PHP website running on an Apache server without ColdFusion installed.
We've added new pages to the website, and GA is still reporting an index.cfm at the end of the URL, even though that page never existed on the old ColdFusion site.
I didn't set up the GA account initially, is there maybe a setting that was enabled? Or does it take GA a while to figure out it's not a ColdFusion website anymore?
By the way, the website in question is http://www.westgatereservations.com. Thanks.
--ADDED--
Screenshot of page list from Google Analytics. All of these pages are WordPress PHP pages that use a clean permalink URL structure.
This is Google Analytics's 'Default Page' feature. If you go to the Account Settings and Edit the Profile Information, you'll see there's a field called "Default Page". It basically does what the theoretical filter I described above does: it automatically appends the default page (in this case, index.cfm) onto every page URL that doesn't have a page suffix. It's a shortcut, since most of the time, users want /foo and /foo/index.html to be counted as the same thing. But it totally breaks on WordPress and 'prettified' URLs, since they don't have a file suffix.
Just remove the Default Page (leave it blank) and the problem should be resolved. I'm not sure if it will be retroactive (Google Analytics rarely allows retroactive changes), but it will resolve the problem moving forward.
Read more about Google Analytics Default Page

Resources