Questions tagged [tracking]
For questions related to Sitecore's tracking features for analytics, including the tracking data models, architecture, visitor identification, the submission of tracking data to Collections for storage, and the tracking of contacts, interactions, events, goals, etc.
51
questions
13
votes
4answers
1k views
Is it possible to exclude some Sitecore Items from analytics tracking?
Is it possible to exclude some Sitecore Items from analytics tracking? We have a few items under sitecore/Content/Sites/MySite/Third Party/ that are consumed by our support site (which does not ...
12
votes
1answer
551 views
Subscribing to EXM Email: How do you manage multiple contacts using the same computer?
We are currently working on a project, where we implemented a registration process using WFFM, EXM and Engagement Plans. We are facing one specific issue, regarding the contact identification with EXM....
10
votes
2answers
932 views
Tracker.Current is not initialized for RSS page
We're getting a ton of errors from an RSS page on one of the websites when bots hit it to get/parse RSS:
Exception: System.InvalidOperationException
Message: Tracker.Current is not initialized
Source:...
9
votes
2answers
1k views
Is there a foolproof way to recognize a returning anonymous user in Sitecore using xDB?
I have a requirement where I need to identify returning users on the website. The users could be anonymous (It's for a movie chain, so people purchase without creating accounts too)
Will xDB be able ...
9
votes
2answers
826 views
Personalizing components with Analytics disabled in Sitecore 7.2
I've just come across an issue with missing personalization options on a Sitecore 7.2 website.
Analytics was recently disabled.
I found an article explaining that disabling Analytics hides all ...
6
votes
1answer
739 views
Sitecore.Analytics.Tracker.Current.Session.Contact Is Null
I'm currently trying to identify a contact using
Sitecore.Analytics.Tracker.Current.Session.Identify(user)
and an exception keeps being thrown
"this.Contact should not be null".
Debugging ...
6
votes
1answer
594 views
Programmatically log visit when Analytics cookie is disabled
Due to EU cookie law, I have a site where we are disabling the Tracker via a pipeline processor ala: Disable xDB tracking for single requests
By interacting with the site, this will serve as consent ...
6
votes
1answer
1k views
Cannot create tracker / session is not initialized on Sitecore 9
I'm getting the following error while attempting to test some analytics functionality on Sitecore 9:
9528 15:23:51 ERROR Cannot create tracker.
Exception: System.InvalidOperationException
Message: ...
6
votes
1answer
247 views
How does Sitecore XDB handle a DNT=1 (do-not-track) request from a browser?
I have a client with a privacy policy that says we will respect the DNT header coming from a browser. Does Sitecore automatically not track DNT visits or do I specifically have to disable tracking for ...
5
votes
1answer
193 views
Sitecore 9 - Incrementing engagement value
The following code worked on Sitecore 8.x to increase Engagement Value programmatically:
Tracker.Current.Interaction.Value += value;
This code compiles and executes file on Sitecore 9.0.1, but after ...
5
votes
1answer
208 views
How do you track known users in Sitecore 9 Update 1?
I am working on creating an intranet, and I know the users logging in to access the site. I am trying to create and update contacts' personal information. However, I am running into issues with Read-...
4
votes
2answers
2k views
Analytics.Tracker.Current is null in Sitecore 9 Update-1 Forms submit action with “Next” navigation step
I'm trying to implement custom submit action in Sitecore 9 Forms according to the guide, but found the problem with Tracker.Current which is null while accessing from SubmitActionBase.
Tracker is ...
4
votes
3answers
627 views
Tracker.Current.Interaction.Profiles PatternLabel is always null
This is Sitecore.NET 7.5 (rev. 141003), already with MongoDB;
I have created some Profile Cards:
With some matching Pattern Cards with same values:
Then I assigned these profile cards to lots of ...
4
votes
2answers
476 views
Whats is the correct way to implement FXM generated script
I'm having a problem implementing FXM generated script on some of out sites.
The Issue, I found is that, the generated Tracking script script is located on our CMS, which is not a public domain.
I ...
4
votes
2answers
458 views
“Method not found” error with MongoDB.MongoCursor
I have problem with MongoDB.Driver.MongoCursor. When I want to set tracking I get an error:
Method not found: 'MongoDB.Driver.MongoCursor`1 Sitecore.Analytics.Data.DataAccess.MongoDb....
4
votes
1answer
323 views
What happens when a contact changes the identifier
Let's imagine we were using a sitecore username as an identifier (example), but later we realized that it is better to use an email as an identifier.
So, we started identifying our visitors using ...
3
votes
2answers
1k views
SC_ANALYTICS_GLOBAL_COOKIE domain name in multisite
I have a multisite configuration running SC8.2u2. All sites have a common domain name xxx.com, however the SC_ANALYTICS_GLOBAL_COOKIE domain name on sub-sites is set to the sub-domain accounts.xxx.com ...
3
votes
1answer
304 views
How do I change the Sitecore Analytics cookie to be SameSite=None?
With the default security changes in browsers, third party cookies are getting blocked. Sitecore's SC_ANALYTICS_GLOBAL_COOKIE doesn't seem to have a SameSite property in it so it is being treated as ...
3
votes
1answer
211 views
Tracking a page event to something other than the current page
I'm working on a site design that has a set of news headlines in the "hero" area, and when you click an article you don't get taken to that page, you're jumped down to an anchor that has the article ...
3
votes
2answers
416 views
Analytics showing ajax calls as page view events. How to prevent that?
After enabling the Sitecore 9 analytics, when I open the Experience Profile, I see all the WebApi ajax calling as page view events or page events in the Experience Profile.
Why this is happening?
...
3
votes
2answers
193 views
Tracking and identifying multiple users on the same session
Sitecore's documentation always talks about how the same person comes back to the site and is identified. How are multiple persons handled?
Say that a person first enters the site (anonymous tracking)...
3
votes
1answer
163 views
What are the side effects of disabling Sitecore.Analytics.Media.MediaRequestEventHandler?
Our load tests have shown that the Sitecore.Analytics.Media.MediaRequestEventHandler reduces load time of media assets by a certain factor.
If we were to disable this handler, what functionality ...
3
votes
0answers
96 views
Get List of all user journey
I want to create a report where I want to get the list of all user identified, pages views count, all the pages views by user and timestamp.
Please suggest the best way to track user journey.
3
votes
0answers
543 views
Tracker.Current.Interaction.Pages in Sitecore is returning only the current page
I know that Tracker.Current.Interaction.Pages should return all the pages user has visited in the current session. Where as in my case it is returning only the current page. Can someone please let me ...
2
votes
2answers
901 views
How do I track how many users clicked my link?
I have a Sitecore component which displays news headlines and "readmore" link.
Once the user clicks on "read more", it shows extra information on the same page.
How can I track all the users who ...
2
votes
1answer
200 views
How to do filtering and sorting on āPages by URLā in Experience Analytics
Here are my business requirements:
I want to track the most visited pages during the last month
I want to track the particular page in the Experience analytics
I am not able to find any sorting or ...
2
votes
1answer
88 views
IdentifyAs not using conditions right away
I have a simple form that takes an email which I use to identify a Contact.
I also have a label with some text that changes based on a condition on the same page.
After identifying the Contact I ...
2
votes
0answers
51 views
Is there a way to use the Universal Tracker SDK from a controller rendering?
It seems that SitecoreUTSessionBuilder make async calls, and controller rendering can't have async calls in them. Am I misunderstanding something? Is there a way to use the SDK from Sitecore?
Thank ...
2
votes
0answers
29 views
Analytics tag not persisting between sessions
I'm using Sitecore 9.0.2 and I'm attempting to use tags in Sitecore analytics to track if a particular modal has been closed, so it doesn't reappear. This is working within a session, but when the ...
1
vote
1answer
447 views
How to add item in contact custom facet List type property
I have created a custom facet model with Sitecore 9.0.1 & xConnect.
My contact custom facet contains a property of List<string> which I want to populate with different values while contact ...
1
vote
3answers
501 views
IP Geolocation Tracker.Current.Session.Interaction.GeoData returning N/A for all properties
Using 8.2, trying to use Geolocation Service in my code to get data about the user's location:
var geoData = Tracker.Current.Session.Interaction.GeoData;
geoData is not null, however every property ...
1
vote
2answers
71 views
How to map tracking field with glass mapper
Using native Sitecore ways, the following can be achieved by doing:
var pageItem = Sitecore.Context.Item;
var trackingField = new TrackingField(pageItem.Fields["__Tracking"]);
The question is ...
1
vote
1answer
95 views
Capture Session Timeout Event in Sitecore Marketing Automation
I am working on Sitecore 9.0.2 and we have a requirement to send a reminder email through marketing automation. We have a scenario where contact will land on registration page and provide email/...
1
vote
1answer
469 views
Experience Forms Tracking Issue - alias should not be null or an empty string. Parameter name: alias
We are getting the error once we submit the Sitecore 9.1 form. This is happening when we enable the checkbox Is tracking Enable in Sitecore core form.
and this error is not with Standalone role, only ...
1
vote
1answer
90 views
Tracker.Current is NULL inside email in EXM
I currently have a Sitecore form that has only one field, an email field. When submitted it sends an automated email to the email address inputted by the user. In the email body, I have a controller ...
1
vote
0answers
505 views
Enabling the internal search in the sitecore analytics
I try to track the top searched keywords to my website using the Sitecore analytics, I read that first I need to register the search page event, So I wrote this :
if(Tracker.Current == null)
{...
1
vote
0answers
246 views
Tracker.Current.Session.Identify error :The given key was not present in the dictionary
In my Sitecore application, I've created custom facet (it has simple fields and object lists). I identify the user by the method:
try
{
if (Tracker.IsActive)
{
Tracker.Current....
1
vote
0answers
75 views
Update tracker.Contact.BehaviorProfiles
In my Experience Editor i have added the following condition:
where the value of the specific profile key in the contact behavior profile is greater than 3
I update the Contact behavior profile in ...
0
votes
2answers
196 views
How tracking works for Layout service used for Mobile apps (API-Only Mode)?
I'm new to JSS, I need to use JSS Layout service to send personalized content to a Mobile App(API-Only Mode).
From Jss Documentation
Via Layout Service
Layout Service requests are tracked on ...
0
votes
1answer
128 views
Pass form field value to controller rendering in EXM
I am using Sitecore forms and EXM. I've saved the contact in xdb then I'm using standard Sitecore email campaign message to send an automated email. In this email, I have a put a controller rendering ...
0
votes
1answer
217 views
How to disabled analytics tracking for specific type requests?
We do not want certain request to be tracked for analytics data say for example API calls.
How we can achieve this using Sitecore config change?
We are using Sitecore 8.2 update 3.
0
votes
3answers
735 views
Sitecore API to get Browser, Device and OS details
We have a requirement to pass browser, OS, Device details to third party analytics (yes they don't capture by default).
Does sitecore provides any API which we can use to capture these details? Any ...
0
votes
1answer
223 views
Tracker.Current.Session.Interaction.IP is returning the IP of my site (localhost) rather than the client IP
I'm trying to use geolocation data in my code, and I found that the reason it isn't working is because the IP address in Tracker.Current.Session.Interaction.IP is returning as 127.0.0.1 (localhost, ...
0
votes
1answer
407 views
Loading VisitorIdentification.js causes 404 not found error
I am trying to enable VisitorIdentification on our pages, so I have added @Html.Sitecore().VisitorIdentification() to our layout pages. However, when the page loads, it throws a 404 when trying to ...
0
votes
1answer
134 views
Do I need mongo db/xDb license to set xDb.TrackingEnabled = true? [duplicate]
We use Sitecore 8.2 update 3 and we do not have xDB license and mongo db, however in one of the modules we need to use geo IP which requires having xDB.TrackingEnabled = true.
Can this be achieved ...
0
votes
0answers
35 views
New Interaction doesn't show after 2nd: using IdentifyAs
I am developing a function to support tracking user behavior through a mobile app.
Below is the current scenario:
Case 1: Anonymous User 1 - Working fine:
Anonymous user visits the page, then these ...
0
votes
0answers
46 views
Sitecore.Analytics.Tracker.Current.Contact.IsNew is returning false always even if all cookies are cleared
Basically, on form submit, I'm trying to store data into contact's Personal Info facet for an anonymous visitor who is visiting the website for the first time using the code here from the official ...
0
votes
0answers
24 views
Explore mode GeoIP data not available
In Sitecore Experience Editor Explore view I am facing one issue in which I am not getting any country list in GeoIP section under Visitor information. Below is the screenshot of my page.
Please ...
0
votes
0answers
74 views
Tracker.Current is null on CD for media request event
I'm using Sitecore 9.1.1, and I've wired an event up to media:request that forces a track of the download page event, as well as increments a counter of number of downloads that a user has performed ...
0
votes
1answer
215 views
JSS Tracking API example fetch errors
I am trying to use the JSS Tracking API, according to https://jss.sitecore.com/docs/fundamentals/services/tracking, with Sitecore XP 9.1. Following the example code:
import { trackingApi } from '@...