Created personalization segment (Core, Time of day 12:00 - 00:00)
Created a page with segmentation allowed
"Add personalized variant" -> Chose previously created segment
Added different content on new variant
In the swagger Umbraco Delivery API retrieved content by path /case/my-test-case/ -> 200 OK with default content
Navigated to Umbraco Engage API
Sent a request using /umbraco/umarketingsuite/api/v1/analytics/pageview/trackpageview/client with modified JSON body to include:
{
"url": "https://localhost:44348/case/my-test-case/",
"referrerUrl": ""
}
Repeat step 5. -> 200 OK with default content
These following steps resulted in no page views being registered for the page or variant in question, and no change in content. I also tried explicity setting the External-Visitor-Id that i received from the Engage API request on the second Content API request but that made no difference.
Thank you for using Engage.
We will investigate this. I also see at bullet point 7 that you are still using the /umarketingsuite/ url. This sound be /engage/.
Hi Tom!
In the release candidate for Umbraco Engage it seems the URL was still /umarketingsuite/ if I'm not mistaken, but I have since upgrade to the 13.0.0 release that recently came out. While that did not seem to solve my issues I finally managed to get the correct content back for the Time of Day segment, but that was by increasing the time span to 00:00 -> 23:55 to make sure I was somewhere in the time span. It also works perfectly with the Browser-based segments.
I'll try and figure out how many hours +/- it takes for the time span to fail. Wondering if there is some mismatch with time zones etc. But like Corné Hoskam mentioned in his comment, I might have been so unlucky to have ended up in the control group for a few tries in a row. So I'll be sure to set that to 0 while testing as well.
I'm still not seeing any registered page views however. The other day when I successfully got the segmented content back for one of my pages it didn't add any page views that I can see under the Analytics tab for that page.
Thank you for reaching out! Unfortunately I am unable to reproduce the issue using simular steps as you have described, where I fetch a content page that has a variant based on the Time of Day segment. Depending on if the current request falls within that Time of Day segment, I get either the default or the personalized content back.
Could it be that your request happens to be part of the control group set for that personalization segment? Under the Advanced Settings dropdown on the segment it is set to 20% by default, meaning that 20% of those who would normally fall within the segment, won't receive the content for that specific segment
Hi Corné!
Thanks, I hadn't actually thought about that too closely. While I did several attempts in a row, it isn't impossible that I just had terrible luck. I'll be sure to create a segment without a control when testing further.
Like i mentioned in my reply to Tom, I did manage to get the Time of Day segment working when I made the time span cover the entire day, but I'll try and figure out where exactly I start falling outside of the time span. Also using a segment without a control group this time. Thank you!
uMarketingSuite / Umbraco Engage page view tracking not working, neither is personalized segments
Hi, I'm having trouble getting page views to register and for segmentation to work. Would appreciate any input on this!
Umbraco.Cms version: 13.5.2
Umbraco.Engage version: 13.0.0-rc.2
Umbraco.Engage.Headless version: 13.0.0-rc.2
License: Dev license
Time of testing: ~15:00 CET
Steps taken from documentation exmple:
/case/my-test-case/
-> 200 OK with default contentSent a request using
/umbraco/umarketingsuite/api/v1/analytics/pageview/trackpageview/client
with modified JSON body to include:{ "url": "https://localhost:44348/case/my-test-case/", "referrerUrl": "" }
Repeat step 5. -> 200 OK with default content
These following steps resulted in no page views being registered for the page or variant in question, and no change in content. I also tried explicity setting the
External-Visitor-Id
that i received from the Engage API request on the second Content API request but that made no difference.Edit: formatting
Hi Robert,
Thank you for using Engage. We will investigate this. I also see at bullet point 7 that you are still using the /umarketingsuite/ url. This sound be /engage/.
Hi Tom! In the release candidate for Umbraco Engage it seems the URL was still /umarketingsuite/ if I'm not mistaken, but I have since upgrade to the 13.0.0 release that recently came out. While that did not seem to solve my issues I finally managed to get the correct content back for the Time of Day segment, but that was by increasing the time span to 00:00 -> 23:55 to make sure I was somewhere in the time span. It also works perfectly with the Browser-based segments.
I'll try and figure out how many hours +/- it takes for the time span to fail. Wondering if there is some mismatch with time zones etc. But like Corné Hoskam mentioned in his comment, I might have been so unlucky to have ended up in the control group for a few tries in a row. So I'll be sure to set that to 0 while testing as well.
I'm still not seeing any registered page views however. The other day when I successfully got the segmented content back for one of my pages it didn't add any page views that I can see under the Analytics tab for that page.
Hi Robert,
Thank you for reaching out! Unfortunately I am unable to reproduce the issue using simular steps as you have described, where I fetch a content page that has a variant based on the Time of Day segment. Depending on if the current request falls within that Time of Day segment, I get either the default or the personalized content back.
Could it be that your request happens to be part of the control group set for that personalization segment? Under the Advanced Settings dropdown on the segment it is set to 20% by default, meaning that 20% of those who would normally fall within the segment, won't receive the content for that specific segment
Hi Corné! Thanks, I hadn't actually thought about that too closely. While I did several attempts in a row, it isn't impossible that I just had terrible luck. I'll be sure to create a segment without a control when testing further.
Like i mentioned in my reply to Tom, I did manage to get the Time of Day segment working when I made the time span cover the entire day, but I'll try and figure out where exactly I start falling outside of the time span. Also using a segment without a control group this time. Thank you!
is working on a reply...