Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

s.products some issues

Avatar

Avatar
Validate 10
Level 3
zhengquanz32073
Level 3

Likes

20 likes

Total Posts

51 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
zhengquanz32073
Level 3

Likes

20 likes

Total Posts

51 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
zhengquanz32073
Level 3

22-08-2017

Hi,

1. Why I cannot see eVar3 report in my analytics? Is there anything wrong in my code?

  1. s.events="purchase"

  2. s.products="Footwear;Running Shoes;1;69.95; eVar3=Discount 1,Running Essentials;Running Socks;10;29.99;eVar3=Discount 2"

  3. s.purchaseID="1234567890"

2.  Do I need to add event1 and event2 into s.events?

  1. s.events="purchase"
  2. s.products="Footwear;Running Shoes;1;69.95; event1=Discount 1,Running Essentials;Running Socks;10;29.99;event2= Discount 2"
  3. s.purchaseID="1234567890"

thanks,

Zhengquan

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
AlexisCazes
MVP

Likes

185 likes

Total Posts

420 posts

Correct Reply

198 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
MVP
AlexisCazes
MVP

Likes

185 likes

Total Posts

420 posts

Correct Reply

198 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
AlexisCazes
MVP

23-08-2017

Hi Zhengquan,

Please check documentation

The syntax for products variable needs to be as follow:

"Category;Product;Quantity;Price;eventN=X[|eventN2=X2];eVarN=merch_category[|eVarN2=merch_category2]"

Notice that events are going before eVars and even if you do not have any events you still need to leave the placeholder.

i.e: s.products=";product1;1;10;;eVar1=test"

As you can see in this example I omitted category and events but I still left the ; placeholder.

In your first example you omitted the placeholder for events before eVar.

The right syntax should be as follow:

s.products="Footwear;Running Shoes;1;69.95;;eVar3=Discount 1,Running Essentials;Running Socks;10;29.99;;eVar3=Discount 2"

Notice: I added ; for events placeholder.

In your seconds example: events always need to be a numeric value so it will not work.

One more IMPORTANT thing:

when you use eVar in the product variable then this eVar needs to be configured as a merchandising eVar with product syntax in Adobe Analytics Admin interface. If you do not do that then it will not work.

Doc

If you do all that then it should work.

Best regards.

Alexis Cazes

Answers (3)

Answers (3)

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

468 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile

Avatar
Coach
Employee
Gigazelle
Employee

Likes

468 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile
Gigazelle
Employee

24-08-2017

Yes, you will want to include them in s.events, as outlined here:

Configure Events

Avatar

Avatar
Validate 10
Level 3
zhengquanz32073
Level 3

Likes

20 likes

Total Posts

51 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
zhengquanz32073
Level 3

Likes

20 likes

Total Posts

51 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
zhengquanz32073
Level 3

24-08-2017

thanks a lot!

Avatar

Avatar
Validate 10
Level 3
zhengquanz32073
Level 3

Likes

20 likes

Total Posts

51 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
zhengquanz32073
Level 3

Likes

20 likes

Total Posts

51 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
zhengquanz32073
Level 3

23-08-2017

Hi Alexis,

It's really helpful. I'm new to DTM.

For second issue,

  1. s.events="purchase"
  2. s.products="Footwear;Running Shoes;1;69.95; event1=50,Running Essentials;Running Socks;10;29.99;event2=100"
  3. s.purchaseID="1234567890"

Do I need to add event1 and event2 to s.events, llike s.event="purchase, event1,event2"?