Thanks in advance for helping.
Here what i'm trying to do:
Let's say i have these 3 sites:
example.com = US
ca.example.com = Canada
fr.example.com = France
1- I want to see traffic from ca.example.com and fr.example.com in example.com
2- But when i'm in ca.example.com i only want to see traffic from ca.example.com, same for fr.example.com
Here what i already tried:
All 3 sites have the same GA code.
I created 3 views and applied advanced filter on each of them.
Create New Filter > Custom > Advanced
Field A > Hostname = (.*)
Field B > Request URI = (.*)
Output > Request URI = $A1$B1
After i excluded example.com on the two subdomains
I don't know if this is the right method. When i visit any of the site, i always see the visit of all 3 views.
Hope this is details enough.
Regards,
If i'm not wrong, you need to exclude traffic to hostnames for two views.
The "fr.example.com" view (predifined) filters can be:
"exlude" + "traffic to the hostame" + "that are equal to" + "example.com"
"exlude" + "traffic to the hostame" + "that are equal to" + "ca.example.com"
The "ca.example.com" view (predifined) filters can be:
"exlude" + "traffic to the hostame" + "that are equal to" + "example.com"
"exlude" + "traffic to the hostame" + "that are equal to" + "fr.example.com"
The "example.com" view filters can be:
left as it, all traffic to every hostnames will be collected into this view
Related
I am trying to set up a UUID using tag manager by following the setup given here
https://insights.unnest.co/google-tag-manager/crer-un-user-id-avec-google-tag-manager-et-google-analytics.
I want to same id for two different domains example domain 1= "abcd.com" and domain 2 = "efgh.com".
Can someone please tell me how to modify the followoing code for cross domain tracking.
document.cookie = "analytics_id" + "=" + ruidCookie + ";" + 3000000000000 +
"; path=/; domain=abcd.com";
Currently I am able to implement it for either abcd.com and efgh.com separately so that two different ids are generated. How can I combine them both?
Thanks
Sriram
I saw a previous answer by Edgar Villegas Alvarado which puts all the form data in the url:
on_sent_ok: "location = 'https://.../?level=1&' + $('form.wpcf7-form').serialize();"
This was very useful, however, I can't work out how to send a specific field(s) eg email. I thought a simple ?email would do it, but it didn't worked.
Assign a ID to the input you want to send.
Then change the actual code to this one:
on_sent_ok: "location = 'https://example.com/other-page/?email=' + jQuery('form.wpcf7-form #assigned_id').val();"
I am new to funnel setup for virtual Page view. I have an quick question for SEO experts...
As you know, the funnel has "Name " and "Screen/Page".
In following screen, I am wondering about track_Pageview values (e.g: 'inquirey-visitorname-completed'). Are they Funnel's name or "screen/page" values? Please let me know.
Thanks you guys in advance.
in your example(looks like it's example from KissMetrics article) after "onBlur" JS-event happend on example, trackPageview method send virtual pageviews.
In Google Analytics at report "All Pages" you will see values like:
'/inquiry-visitorname-completed',
'/inquiry-country-completed',
'/inquiry-visitorstateprovince-completed',
etc.
In funnel settings you should use, for example, "/inquiry-visitorname-completed" as "Screen/Page".
So, in the "Screen/Page" should be used any type of pageview(real or virtual), like '/thankyou.html', '/order/completed/', etc.
In the "Name" field you can use "Order Lists", "Get a Quote", and so on - this is just name of steps for GA funnels.
I am trying to set up Google Analytics (Universal/analytics.js) to track a user account set-up funnel on a single website with many subdomains. On each subdomain, a user can express interest in creating an account, and then create the account. Once the account is created, they leave the subdomain and arrive on the main domain.
For the subdomain foo, the flow is like this:
foo.maindomain.com - register interest
foo.maindomain.com/inv/acc0unTt0k3n - enter account set-up details
maindomain.com/extra_information - info is supplied
maindomain.com/home - goal end point reached
I have set up a View for each subdomain e.g 'Viewing foo.maindomain.com', and each View has a Filter that accurately shows visits to foo.maindomain.com & foo.maindomain.com/inv/acc0unTt0k3n.
I don't know how to go about tracking traffic through this whole funnel. My ideal end-goal would be to track this funnel for all subdomains combined, but I would be satisfied for now with getting a Goal or Funnel that worked for each subdomain individually.
Inside my 'Viewing foo.maindomain.com' View, I have attempted to create a Goal to track this. I can capture the first two steps by creating:
Goal Type > Destination
Destination: /inv/
Funnel: /
This gives a 20% conversion rate, which matches up with my server data for account creations. But if I try to change the Destination to maindomain.com/boarding, and add /inv/ as another step in the Funnel, it no longer works ("Verify this Goal" returns 0).
How can I create a Goal that captures all of these steps?
Make sure you are using the same UA code on every subdomain.
You should then just be able to see all the subdomains in the standard view out of the box - UA tracks across subdomains automatically. See the Google documentation for details
You don't need to set up a view for each subdomain if you don't need it.
Name your master View "Rollup" if you like.
You can see all subdomains in your "Hostname" report for that view.
You may want to overwrite your pageview names so they also incude the subdomain, so you can tell them apart (if say subdomain1.domain.com/index.html and subdomain2.domain.com/index.html exist, in the standard pagetracking they will be aggregated) - this can be done via filters:
Filter Type: Custom filter > Advanced
Field A: Hostname Extract A: (.*)
Field B: Request URI Extract: (.*)
Output To: Request URI Constructor: $A1$B1
If a users follows a dead link to my site and requests a record which is no longer valid I would like to be able to provide them with a list of other potential records which they might have been searching for. Most of my records get "soft" deleted so I am normally able to derive search data from the ID in the request - but never the new ID of the record (records can be moved but there is no link between the old a new records, other records may simply not exist any more).
My gut instinct is to return a page of content with the possible records along with a 404 header to hopefully get search engines to drop the index for that URL.
The other option would be to redirect (301 - or even 303??) to this results page.
I'd advocate a status code of 300 to indicate multiple choices (per RFC)
If you have one target to redirect to, use a 301 to redirect to it.
If you have multiple options, I would go with a 300 - it indicates multiple choices.
In my opinion you should go with the 404, since you stated you provide a list with multiple items. A redirect should be used with one possible item only.
update: I totally forgot about 300... use that one as mentioned before by Rowland Shaw
By "records" - do you mean vinyl?
For the "SEO" tag in your question - if you're running an eCommerce store and driving traffic keep the 200 OK and display the record as (permanently) out-of-stock (as you suggest) and offer alternate "records" - never drop an indexed product link for a "good" product.
I'd only advocate a "301 Permanent Redirect" if the product is genuinely damaging to your site / business.
For the "user-experience" - again keep the 200 OK - the user doesn't care what status is being returned.