We have recently rolled out an infinite scroll feature in the site that could be generating this issue but we are not sure why/what is causing this. Every page visit and event is reported correctly, but in some cases the page view is prefixed with "/", (e.g. "/https://www..."). It is only happening in Organic traffic from Google. Any ideas would be more than welcome. We included a canonical link in those pages that contains infinite scroll. As a check we did run a crawler and there are no links in the site like those so not sure how to find the error source.
Thanks in advance
Found the issue! A pageView event was fired using absolute url instead of relative url. Changing it seems to have fixed the issue.
Related
I've identified a discrepancy between Google Ads clicks and Analytics sessions in Paid Search (about twice more clicks than sessions). So I contacted Google Ads support and after a long conversation, they send me an email saying that my website structure uses redirections and it's making it lose parameters, and that I had to contact a developer to solve that problem because they don't give assistance on it. What exactly they told me to tell the developer was that:
Loss of parameters by redirection
The website trendotrends.com is not holding navigation parameters
because of the structure in which it was developed.
To verify this redirection, simply replicate the following steps: I
accessed the link
https://trendotrends.com/products/running-shoes?variant=15320930779194
After full site loading, I added the & gclid = Tester123 parameter to
the URL (in the browser, so the final URL was
https://trendotrends.com/products/running-shoes?variant=15320930779194&gclid=Tester123)
and hit Enter To understand if there is a redirect, the normal
behavior would be for the URL to remain the same (with & gclid =
Tester123 at the end), but in this case, the parameter disappears (and
hence the assignment) This link was just an example, which can be
verified in several other products of the site.
They also said I can't use manual tagging (UTMs) instead of automatic tagging in Google Ads because those redirections are also going to spoil the UTMs.
I don't use any redirections in my website and I have also tested with UTMs and there's also a discrepancy in google analytics data for that.
But before I contact a developer and invest on this fix, I would like to know if anyone had experienced that? If Googles answer fits this problem? And even if is there a way to fix it without being an expert.
Thanks in advance.
The issue here isn't really that there's a redirect (301), but a state change. There is javascript on the page that essentially rewrites the URL before the GA code can parse it.
Are you able to change to a different theme and test if this happens with that theme?
Recently ran into some trouble with Google DFP that I'm hoping others have had.
We have a site that's served via SSL and it contains some Google DFP ad tags. Google DFP's debugging console shows no errors in the tags or our implementation of them. (i.e. the tags themselves are fine)
However, the ads are getting served via different methods. Some of the iframes get served as FriendlyFrames and some get served as SafeFrames. The SafeFrame ads appear correctly. The FriendlyFrame ads don't show up.
It appears that the FriendlyFrame ads are running afoul of some sort of browser security measure (likely because the pages are served via SSL).
I looked into this in the DFP docs but haven't found anything that explains how to solve the issue. There is a setForceSafeFrame method available that I've tried to use but it doesn't actually seem to do anything when I try to use it:
https://developers.google.com/doubleclick-gpt/reference#googletag.PassbackSlot_setForceSafeFrame
I've setup a test page demonstrating the issue here:
https://methnen.com/ad-test
There should be 5 separate ads on the page. If you get all of them refresh the page until you get at least one ad that doesn't show. The broken ads are being served as a FriendlyFrames.
Really hoping someone knows what the heck is going on.
FYI and possibly helpful for anyone else who might run into this at a later date:
Turns out the Ad Ops person hadn't set things up on their end to have enough inventory to fill all of the slots and there was nothing wrong with the tagging at all. The empty FriendlyFrames are apparently what DFP serves up when it decides it doesn't have anything to fill a given slot.
Try to force render all ads in SafeFrame
googletag.pubads().setForceSafeFrame(true);
More about it here https://developers.google.com/doubleclick-gpt/reference#googletag.PassbackSlot_setForceSafeFrame
I have a wordpress website where I integrated the facebook like button on each article. It was showing correct like counts for a while now but suddenly it began showing zero number of likes.
Upon further testing, it is showing the correct number of likes only once I, the user, has clicked the Like button itself. (and refreshing afterwards)
What could be the cause of this issue? Is this an issue with Facebook's API? or has something to do with URL? Any help will be appreciated.
This issue will happen only if you are using URL Masking for your website, which loads the page inside an iFrame on a different domain. see: http://ycouriel.blogspot.com/2009/11/hide-url-in-address-bar-using-iframe.html
The solution is to use Addon Domain instead of URL Masking (iframe).
I found a website which is relevant to the topic that I am researching - getting an IFrame's current URL address from another domain.
Here it is:
http://hidemyipaddress.org/
(to use it simply go to the bottom, enter a website address and click "go").
You can surf any website through their website - and the amazing thing is that they can keep track of your current location, and even show it to you. (Here is a picture to illustrate: http://img199.imageshack.us/img199/6343/image2eb.jpg)
The reason I am asking is because I am trying to do the same thing.
How is this possible, isn't that XSS or something?
Thanks for taking your time on this.
our website was using absolute url before(such as "www.example.com/?action=splash"), and now we switched to relative urls(such as "/?action=splash")
We know that we were not doing the correct thing before. We noticed that by using absolute urls, we are doing self referrals when user click from one page on our site to another page on our site.
However, since we changed to relative urls, our visits dropped sharply based on Google Analytics, therefore, we wonder if self referring were counted as new visits.
Thank you so much for your help.
Google Analytics is blind to whether the links on your page are relative or absolute.
The likeliest cause of self-referral, though, is if you're changing subdomains between pageviews without having set _setDomainName to a compatible value.
When you do have self-referral (which is bad), it does indeed artificially inflate your visit count. So, fixing a self-referral problem will lead to a fall in visitor count. (But, it will be more accurate.)
Example: if I arrive via Google, I'm now a visit attributed to google. Then, if I go from www.example.com to secure.example.com without the GA tags being configured properly with _gaq.push(["_setDomainName","example.com"]);, then I'm now treated as a visitor with his second visit, this time referred from www.example.com. ie, self-referrals cause duplication of visit counts.
If you're seeing less self-referral, its not because of the absolute/referral difference, unless the absolute URLs were being inconsistent with, say, whether they included www.
Based on the way Google Analytics works, the referrer should really not affect anything like that. It is more probable that you broke something else when you changed your URLs.