19 votes
Accepted

Is it possible to exclude some Sitecore Items from analytics tracking?

I actually just discovered the answer to my own question after more poking around. Highlight the item in the Sitecore Content Explorer. From the Analyze ribbon select the Attributes button. ...
eat-sleep-code's user avatar
14 votes
Accepted

Is there a foolproof way to recognize a returning anonymous user in Sitecore using xDB?

If cookies are cleared, there is no way if you hadn't gotten them to self identify first. More info: You want to get users to self identify with an email address of some kind as quickly as possible. ...
Pete Navarra's user avatar
  • 14.6k
10 votes
Accepted

Subscribing to EXM Email: How do you manage multiple contacts using the same computer?

This is a pretty complex issue and question, but you have broken it down excellently to allow me to attempt and pinpoint the issue. I believe the issue you are suffering from is what I have called "...
Pete Navarra's user avatar
  • 14.6k
9 votes
Accepted

Programmatically log visit when Analytics cookie is disabled

First of all, just to make it 100% clear: if you've disabled the tracker, then you can't track anything. No consent is required for session tracking According to the "EU cookie law", you cannot ...
Dmytro Shevchenko's user avatar
9 votes
Accepted

Sitecore.Analytics.Tracker.Current.Session.Contact Is Null

Make sure it runs before the Sitecore.Analytics.Pipelines.HttpRequest.EndAnalytics processor in the httpRequestProcessed pipeline. Otherwise, the contact is set to null in the EndAnalytics pipeline ...
Marco's user avatar
  • 995
8 votes
Accepted

Personalizing components with Analytics disabled in Sitecore 7.2

Yes need to have Analytics enabled for the personalization rules to be enabled in the system, but you can effectively disable it by turning off the database writes. You need to set Analytics.Enabled ...
Richard Seal's user avatar
  • 19.9k
7 votes
Accepted

Tracker.Current is not initialized for RSS page

The reason the tracker is not initialized is because it can't work with session state disabled. As I understand, you don't want this page to be tracked anyway. To ensure that xDB tracking is disabled,...
Dmytro Shevchenko's user avatar
7 votes
Accepted

Analytics.Tracker.Current is null in Sitecore 9 Update-1 Forms submit action with "Next" navigation step

I received feedback from Sitecore support: The mentioned behavior is expected because the tracker should be only triggered upon a submit as it is expensive to keep it alive after navigating to the ...
whuu's user avatar
  • 615
6 votes
Accepted

SC_ANALYTICS_GLOBAL_COOKIE domain name in multisite

You'll want to set a <httpCookies> configuration in your Web.config that allows for a wildcard domain. This is done by specifying the root of your domain in the cookie. Note: that by changing ...
Pete Navarra's user avatar
  • 14.6k
5 votes
Accepted

How to add item in contact custom facet List type property

You should use similar code as below one to fix your problems to get and set custom facet values: Contact contact = client.Get<Contact>( new IdentifiedContactReference(_contactSource, ...
Peter Procházka's user avatar
5 votes
Accepted

How do I track how many users clicked my link?

I would use Page Event rather than Goal in this case as it is more appropriate. There is not much technical difference between those two. 1) Creating Page Event You can create Page Event under /...
Peter Procházka's user avatar
5 votes

Personalizing components with Analytics disabled in Sitecore 7.2

My understanding is disabling the DB vs. the config will get you what you need. From here: https://community.sitecore.net/developers/f/9/t/246 The advantage to disabling the database, means that ...
James Williamson's user avatar
5 votes
Accepted

How do I change the Sitecore Analytics cookie to be SameSite=None?

Change all cookies to SameSite=None A new KB article for SameSite with Federated Authentication is now available. In this article, one of the changes it suggests to make allows for ALL generated ...
Jason St-Cyr's user avatar
  • 6,696
4 votes
Accepted

Cannot create tracker / session is not initialized on Sitecore 9

Ensure that you are not running in the ContentManagement role in your Web.config. For testing analytics locally you will need to use the Standalone role: <add key="role:define" value="Standalone" /...
nickwesselman's user avatar
4 votes

SC_ANALYTICS_GLOBAL_COOKIE domain name in multisite

You should add the following setting in Sitecore.Analytics.Tracking.config just below the <settings> section: <setting name="Analytics.CookieDomain" value=".xxx.com">
Ajju's user avatar
  • 71
4 votes

Whats is the correct way to implement FXM generated script

In a distributed environment, you must enable the following two configuration files on all the servers: Sitecore.FXM.Bundle.config Sitecore.FXM.config Also, make sure that the following ...
Vlad Iobagiu's user avatar
  • 18.1k
4 votes

Sitecore 9 - Incrementing engagement value

In Sitecore 9.x, the engagement value is a calculated facet. If you want to increase the engagement value, you should add an event where you are setting the engagement value e.g. using (...
Jacob Nielsen's user avatar
4 votes
Accepted

Tracking a page event to something other than the current page

You can use the code below to add a page to the interactions collection. The pageGuid is the Item ID of the page you want to simulate. NOTE: we are canceling the current page because I am calling ...
Chris Auer's user avatar
  • 13.1k
4 votes
Accepted

Send tracking data to Sitecore CDP

Full workflow to track any events: Connect website with Sitecore CDP: Navigate to CDP -> System Settings -> API Access and copy Client Key value: Navigate to CDP -> System Settings -> ...
x3mxray's user avatar
  • 3,130
3 votes
Accepted

Analytics showing ajax calls as page view events. How to prevent that?

The best way to tackle this is to add an Action Filter on your Controller actions to prevent the events from showing up in your Analytics Reports. Filter code: [AttributeUsage(AttributeTargets.Class ...
Martin English's user avatar
3 votes

Tracker.Current is not initialized for RSS page

The Disable Analytics option on item is used during the Processing/Aggregation activities of Sitecore Analytics, specifically the processItem pipeline. <processItem patch:source="Sitecore....
Pete Navarra's user avatar
  • 14.6k
3 votes

Is it possible to exclude some Sitecore Items from analytics tracking?

Even though you disabled the "disable analytics tracking for this page" setting for the sitecore/Content/Sites/MySite/Third Party/ item, I don't think it will stop analytics tracking for the child ...
scFootsteps's user avatar
  • 3,767
3 votes

"Method not found" error with MongoDB.MongoCursor

Sitecore 8.2 is not supporting MongoDB 3.4.7 yet, Latest version of mongoDB supported is 3.2.1 See supported versions table here : https://kb.sitecore.net/articles/633863
Ahmed Okour's user avatar
  • 2,124
3 votes
Accepted

How does Sitecore XDB handle a DNT=1 (do-not-track) request from a browser?

As a comment suggests, the Sitecore does not react to the DNT signals, that is why you have to track it by yourself and stop the Analytics Tracker if there is a DNT header present. You can check a ...
Andrey Bobrov's user avatar
3 votes
Accepted

Tracker.Current.Interaction.Profiles PatternLabel is always null

I found a possible solution to your problem, besides checking what @Pete saids about settings. We need to check if you get all items created to analytics works, it including Profiles and Keys ...
Hedipo's user avatar
  • 71
3 votes

Tracker.Current.Interaction.Profiles PatternLabel is always null

Things to Check There are a number of reasons why the StartTracking pipeline might not work, which are heavily documented on Sitecore Stack Exchange. That being said, I would start with working ...
Pete Navarra's user avatar
  • 14.6k
3 votes

How to do filtering and sorting on “Pages by URL” in Experience Analytics

At least the first of your requirements can easily be achieved by changing default sorting options for the list. For the 'By URL' detailed list, you can find the default settings in item /sitecore/...
i123fr3's user avatar
  • 372
3 votes

Pass form field value to controller rendering in EXM

There are two parts to this question: Sitecore Forms and EXM. In order to pass form fields from Sitecore Forms to EXM, you need to create a custom Submit Action that processes the fields on the page ...
Pete Navarra's user avatar
  • 14.6k
2 votes
Accepted

What happens when a contact changes the identifier

When using the Identify() method and switching identifiers, because the contact is known, Identify() won't merge the contacts like it would for an anonymous original contact. So the end result is ...
Pete Navarra's user avatar
  • 14.6k
2 votes

Sitecore API to get Browser, Device and OS details

Sitecore will capture information about the request in the analytics, but if you are just sending the data to the 3rd party analytics API you can probably just use the Request.Browser object that is ...
Richard Seal's user avatar
  • 19.9k

Only top scored, non community-wiki answers of a minimum length are eligible