how to fire a tag in all url except homepage? |Regex(google tag manager) - google-tag-manager

hi i want to fire a scroll tag in all pages of my website except homepage with regular expressions in tag manager.
in this question homepage url means "site.com" and not means "site.com/home.html"
thanks for helping.
trying regex in tag manager

Just a regex for page path that's longer than 1 character:
.{2,}
Should do the trick, Every page path that's shorter than 2 characters will be your homepage. I'm just leaving the allowance for the trailing slash "site.com/"

You could create a trigger with the condition Page Path does not equal /.

Related

Unwanted URL repeating/appended in Google Analytics

I seem to have a problem with my Google Analytics.
My pages are being shown as 404 errors as the full URL address is being repeated after the foldername.
Example:
My page for cars is:
/cars/
But Google Analytics is showing this page as
/cars/www.domain.com
There are no filters set that I can see but I don't know how to resolve it.
Is this common? It is a Wordpress site.
You have a link somewhere that starts with www.example.com, but should start with http://www.example.com (or https://www.example.com).
URLs that don't start with a protocol (http://, https:// or just :// to mean "the same protocol this document was requested with") or a / are interpreted to be relative to the current document, e.g. if you are on http://www.example.org/cars/ and you link to "mercedes/", it yields http://www.example.org/cars/mercedes/. This is what happens for you, because you have an incomplete URL somewhere. Look at your document source in your browser and search for www.example.com. You will most likely find something like href="www.example.com". Find the link in your post / template that is responsible, and change it to href="http://www.example.com" or href="https://www.example.com", depending on what that host supports.
In some cases, you might find that Google Analytics is adding your domain name after every URL slug captured and it can make for some messy reporting.
For example, our homepage would return
/nichemarket.co.za
and the blog page would return
/blog/nichemarket.co.za
If your site analytics account returns a similar issue, this is not standard practice and is generally due to a misconfiguration of the view filter.
To fix this issue head over to your Google Analytics account and click the Admin tab in the right-hand menu.
Navigate to view
Select view settings
Scroll down to default page
Remove your domain name from the text box and leave it blank
Click save

Tag Manager Trigger with Value of Originating Link Page

With Google Tag Manager, I want to create a tag that tracks the originating page that links to a form that is in an Iframe, why is a form in an Iframe, because I deal with netsuite, I know, horrible. Anyways, I want to be able to submit the form and pull the url or element by id from the original page where it was linked from. No cross domain as it is all within the same domain. Thank you all for any help.
Well for Form ID and Page url you will need you have predefined variable in GTM
http://take.ms/PPdTj
And for Url of the page on which the iframe exist you would have to modify the href of the iframe and append a parameter with required page url
and then extract the query param using gtm

Google Page Analytics Showing "/" instead of correct link

Our Google Page Analytics is showing "/" as the destination URL for many links when in fact those links do not link to "/" Why is that? We want to see the correct stats but these links are all registering as a link to the home page and not the page that it actually links to. Any thoughts?
Google Analytics will break your address 'mysite.com/thispage' into two elements; the hostname 'www.mysite.com' and the page identifier '/thispage'. If you're seeing '/' as a page identifier, the page was actually 'hostname/'. You can see this if you add 'hostname' as a secondary dimension to any report.
You should also check the implementation of analytics on your website; when you click on links, do they actually change the URL? Do they trigger a Page Load?

Google Analytics page url displayed wrong

In one of my client's sites in Google Analytics, under Site Content > All Pages, all the page urls are showing incorrectly, with the domain name placed after the page url.
Normally the homepage is displayed as /
in this case the homepage is displayed as:
/www.domain.com
and all other pages are the same, such as:
/shopping-cart/www.domain.com
does anyone know how to fix this?
Thanks
It sounds like a Filter was created to show the full domain name, but the variables for Hostname, $A1, and Request URI, $B1, got switched around.
Here is a screenshot of the filter I use with the variables underlined.
I also ran into this issue and saw that I had the Default URL setting set to our domain:
screencapture of default url field
This field is under View Settings. We had entered the domain in this field and it was appending it to pages because this field is intended for "index.html" paths.

DoubleClick Floodlight Tags: Expected URL match required?

In setting up Floodlight tags for a site that is already running a content experiments through Google Analytics, do I need to establish a separate Floodlight Activity for each variation page URL?
There are a few different pages (landing-a, landing-b), each with 1-3 test URLs (-1, -2) leading to a separate thank-you sub page. My thought is to create a single floodlight activity for each group of pages and apply it to all of the thank you pages via Google Tag Manger.
Example:
/landing-a-1 control URL
/landing-a-2 test URL
/landing-a-1/thanks - conversion page for control URL
/landing-a-2/thanks - conversion page for test URL
/landing-b-1 control URL
/landing-b-2 test URL
/landing-b-1/thanks - conversion page for control URL
/landing-b-2/thanks - conversion page for test URL
My concern is the "Expected URL" field. According to the Implementation guide checklist this field should be the page where the tag will be placed, but it isn't clear what happens when the tag is placed on a page with a similar URL. Example: Expected URL set as /landing-a-1/thanks, but same tag placed on landing-a-2/thanks.
I can't find a definite answer from Google (I have the same question) but did find a marketing company claiming it doesn't matter.
I'm running on that hypothesis – if I discover differently I'll update here.

Resources