1

I am working with Sitecore 9 update 1. I have created a goal, deployed it, and published it. After that, I have applied the goal on the home page and other Sitecore pages, the document I followed is here:

https://doc.sitecore.com/users/82/sitecore-experience-platform/en/create-and-deploy-a-goal.html

I browsed these pages many times and closed the browser sessions to be written in xDB but I could not find any goals returned in Experience Analytics.

enter image description here

Also nothing related to my Goal exists in the [Xdb.Collection.Shard0].[xdb_collection].[Interactions] table in the database.

I do not know where the problem is. Is there any configuration that should be done first, or do the goals take time to be written in xDB?

2

2 Answers 2

1

Make sure you have published the goals and also published Home page and other pages where you associated the goals.

You need to make sure that you have enabled indexing of anonymous contacts in the appropriate config file as given here and then set the default session timeout to 1 min as given here. After doing these things, make the visit to a page (that has goal associated to it) in incognito mode, close the browser window. After 1 min, you should definitely see that data in Experience Analytics and also in Experience Profile (a new row will be added with last interaction column value as 1 min). Clicking on the Anonymous user should show the goals that were triggered in the visit

1
  • I published the pages where I associated the goals already, and the indexing of anonymous contacts is enabled already, but when I tried with logged in user the goals comes, so what do you think about the anonymous contacts that not come even if the indexing of anonymous contacts is already enabled. should I rebuild the xDB search index again ? Commented Aug 6, 2020 at 7:34
0

The session needs to end either expicitly by closing the browser or via code.

As per the documentation "xDB data is not committed until after the user's session ends"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.