Skip to content

Unable to get the offer in We-Retail page #8

@brunob15

Description

@brunob15

Hi!

I completed all steps in the tutorial but I'm not able to see the message "Hi! It seems you were trying to buy..." when I navigate to we-retail.

I get the trigger executed, my webhook is properly called and the user profile is properly updated through Target API from my webhook.

This is the batch being sent from the webhook to Target API:

pcId,mcId,trProducts,trPrices,trLink,trThumb,trOffer,trCoupon
aab5c29b49764e3a8a861904a47bf291.17_0,85873594577024071332555981770939565448,Some shorts,39,http://localhost:4502/content/we-retail/us/en/products/men/shorts/slot-canyon-active-shorts.html#mehisusls-L,http://localhost:4502/content/we-retail/us/en/products/men/shorts/slot-canyon-active-shorts/jcr:content/root/product/mehisusls-l/image.thumbnail.64.transparent.png/1473680881374.png,5,ADBETGT5OFF

And this is what I get when I hit the Target API to get the profile (endpoint ...tt.omtrdc.net/rest/v1/profiles):

{
	"client": "xxx",
	"visitorId": "xxx",
	"modifiedAt": "2020-04-02T16:04:03.078-04:00",
	"profileAttributes": {
		"trCoupon": {
			"value": "ADBETGT5OFF",
			"modifiedAt": "2020-04-02T16:04:03.078-04:00"
		},
		"trPrices": {
			"value": "39",
			"modifiedAt": "2020-04-02T16:04:03.078-04:00"
		},
		"mcId": {
			"value": "xxx",
			"modifiedAt": "2020-04-02T16:04:03.078-04:00"
		},
		"trProducts": {
			"value": "Some shorts",
			"modifiedAt": "2020-04-02T16:04:03.078-04:00"
		},
		"trThumb": {
			"value": "http://localhost:4502/content/we-retail/us/en/products/men/shorts/slot-canyon-active-shorts/jcr:content/root/product/mehisusls-l/image.thumbnail.64.transparent.png/1473680881374.png",
			"modifiedAt": "2020-04-02T16:04:03.078-04:00"
		},
		"trLink": {
			"value": "http://localhost:4502/content/we-retail/us/en/products/men/shorts/slot-canyon-active-shorts.html#mehisusls-L",
			"modifiedAt": "2020-04-02T16:04:03.078-04:00"
		},
		"trOffer": {
			"value": "5",
			"modifiedAt": "2020-04-02T16:04:03.078-04:00"
		}
	}
}

This is how my audience is set up:

image

And these are the customer attributes:

image

With this configuration I am not seeing the message in we-retail as you can see:

image

But if I change my audience to this:

image

Then I do can see the message:

image

Any clue on what could be going on here? Something I could be missing?

Thank you!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions