Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Sitecore.Analytics.Tracker.Current.Session.Interaction is null when running automated tests

We are running a set of SpecFlow tests against our Sitecore 10.2 Content Delivery site. As part of our code, we generate trace information for current tracking session. When running the tests on our ...
Harald Greve's user avatar
0 votes
0 answers
81 views

Tracking logged In Contacts in Sitecore 10

I am working on sitecore 10.1 project. We have login mechanism in our site so if user is logged in, we are identifying the contact based on the identifier(profile id of user). If the contact does not ...
litika chib's user avatar
0 votes
1 answer
468 views

Implement Cookie and consent management in Sitecore Headless App

I implemented the Cookie and consent management functionality (Manage a contact's tracking consent choices (sitecore.com)) in the Sitecore 10.1 + Sitecore NextJS (18.0.0) using the Sitecore.Analytics....
Amit Kumar's user avatar
2 votes
3 answers
134 views

Disable xDB in Multisite Website

Can we enable xDB for a specific website and disable it for other? I know we have this option for xdb tracking but what about Xdb.Enabled? can this setting be true/ false for a specific site?
samridhi sachdeva's user avatar
2 votes
1 answer
82 views

Search by Contact id in Sitecore experience profile

We have enabled anonymous user tracking in Sitecore 10.1 and we can see data in experience profile with name shown as Anonymous. We want to implement the search by contact id in the experience profile....
Vinod Chavan's user avatar
1 vote
2 answers
166 views

Does disabling Sitecore XDB and Tracking help in improving Site Performance?

Can disabling Sitecore XDB and tracking help in improving Site Performance ? What all can be functionalities/ features can be impacted if we disable them ?
samridhi sachdeva's user avatar
0 votes
1 answer
163 views

Where to fire a custom XConnect event on page load?

I have a case where I want to fire a custom page event but only for a specific page template. This means that whichever pipeline I fire the event from, I need access to: Current page's template ID OR ...
Marcel Gruber's user avatar
1 vote
1 answer
57 views

Track users based on certain credentials

I would like to track user activity based on some of the details that they provided. Eg. internal sites that they have visited, number of logged in times, amount of time that they have spent of ...
Yong Qin Foo's user avatar
1 vote
0 answers
172 views

Geolocation not working on Local [closed]

I have configured a page for personation based on GeoIP but it doesn't work on my local. I have used a chrome extension to fake IP address. I can see Sitecore.Analytics.Tracker.Current.Interaction.Ip ...
Imad's user avatar
  • 235
1 vote
0 answers
93 views

How do I track contacts and see their visits upon registering to my site?

This is the method I have to register a Contact and their facets to the xDb (I have also registered some of my personal facets). However upon registering, my known contacts visits and visit duration ...
Yong Qin Foo's user avatar
0 votes
1 answer
90 views

Tracking User Personal Information in sitecore CDP

In sitecore CDP, I'm using Email Corner PopUp template to Track user email address and their Interactions on the site, Now I want to get first name, last name, gender of the user. For this , am I need ...
Nithya's user avatar
  • 107
2 votes
2 answers
535 views

Send tracking data to Sitecore CDP

I am currently working with Sitecore CDP. I have Sitecore site .when user visit the site , I need to capture the user Interactions using Sitecore CDP, In Official Document I found JavaScript snippet ...
Nithya's user avatar
  • 107
2 votes
1 answer
350 views

Sitecore - Application Insights Telemetry - Custom properties

I am struggling with accomplishing the following scenario: I need to create a custom property for Application Insights, containing an identifier for the user (which is read from the data store at ...
Marius Popa's user avatar
1 vote
1 answer
89 views

Recipient Activity tab under email template item does not track unsubscribe contact data

We are unsubscribing contact through client api and using custom url in email campaign message and calling custom method, we are using the below code : _clientApiService.UpdateListSubscription(new ...
User7864's user avatar
  • 219
1 vote
0 answers
570 views

Sitecore Forms Field tracking controller issue

When we tried to submit the form, we are getting NullReferenceException in FieldTrackingController. Its not even hitting our server side custom submit action. We did rebuild link database and indexing....
Thamizh's user avatar
  • 327
0 votes
1 answer
178 views

Tracking external downloads with Sitecore analytics

I am using Sitecore 9.1.1 with SXA 1.8.1. I have a set of pdfs stored externally but I would like to use Sitecore Analytics to register download page events when someone is downloading the documents. ...
9_9's user avatar
  • 121
0 votes
0 answers
92 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 ...
Cuong Nguyen's user avatar
1 vote
0 answers
276 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 ...
Paulson Maclean's user avatar
2 votes
1 answer
82 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 ...
Mittal's user avatar
  • 61
0 votes
0 answers
366 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 ...
Ken McAndrew's user avatar
  • 5,112
2 votes
2 answers
420 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 ...
Ed T.'s user avatar
  • 181
4 votes
1 answer
887 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 ...
Jason St-Cyr's user avatar
  • 6,791
0 votes
2 answers
342 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 ...
Jojo's user avatar
  • 463
1 vote
1 answer
531 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 '@...
Joost's user avatar
  • 1,907
3 votes
1 answer
933 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 ...
Sandeep's user avatar
  • 59
2 votes
1 answer
155 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 ...
qwert's user avatar
  • 389
0 votes
1 answer
294 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 ...
qwert's user avatar
  • 389
1 vote
1 answer
531 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, ...
Erica Stockwell-Alpert's user avatar
1 vote
3 answers
1k 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 ...
Erica Stockwell-Alpert's user avatar
3 votes
1 answer
497 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 ...
Ken McAndrew's user avatar
  • 5,112
0 votes
1 answer
471 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.
Abhishek Malaviya's user avatar
3 votes
1 answer
343 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 ...
Ashish Bansal's user avatar
2 votes
0 answers
55 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 ...
JonSolo's user avatar
  • 21
3 votes
2 answers
406 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)...
TheHvidsten's user avatar
  • 1,004
3 votes
1 answer
248 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 ...
Mark Lowe's user avatar
  • 1,056
2 votes
0 answers
38 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 ...
Ken McAndrew's user avatar
  • 5,112
5 votes
1 answer
272 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-...
Zach Gay's user avatar
2 votes
2 answers
1k 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 ...
user3621's user avatar
  • 414
1 vote
0 answers
820 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) {...
Mohamed Yaseen's user avatar
3 votes
2 answers
3k 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 ...
whuu's user avatar
  • 615
1 vote
1 answer
646 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 ...
Foysal's user avatar
  • 506
3 votes
3 answers
554 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? ...
Foysal's user avatar
  • 506
0 votes
1 answer
884 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 ...
Bryan's user avatar
  • 121
4 votes
2 answers
612 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 ...
Ryan Jusay's user avatar
0 votes
1 answer
147 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 ...
Izabela Wlodarska's user avatar
3 votes
2 answers
2k 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 ...
andyp's user avatar
  • 903
1 vote
0 answers
280 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....
Jan Nowak's user avatar
  • 311
2 votes
1 answer
117 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 ...
mark DE Jong's user avatar
  • 1,001
5 votes
1 answer
248 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 ...
nickwesselman's user avatar
1 vote
0 answers
92 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 ...
mark DE Jong's user avatar
  • 1,001