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

Linking field value to Custom tag section ins web analytics

Avatar

Avatar
Validate 1
Level 1
pradeep_07
Level 1

Like

1 like

Total Posts

56 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
pradeep_07
Level 1

Like

1 like

Total Posts

56 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Boost 1
Applaud 5
View profile
pradeep_07
Level 1

15-07-2020

Hey I have scenario where I want to populate the web analytics section custom tag with Campaign name(Folder name).

 

I know it can be entered manually while creating new deliveries, but I want this field to be populated dynamically when we create new delivery. I have trying to achieve this by adding some code in input forms. so far it did not work. Below is the code am using. Not sure where its going wrong and am sure its missing something.Any thoughts on this approach?

 

<postSave>

<if expr="@label != ''">

<set expr="Coalesce(@@label, 'defaultvalue can be anything that you want as default')" xpath="webAnalytics/@tag1"/>

<set value="nms:delivery" xpath="/ignored/writer/delivery/@xtkschema"/>

<set value="update" xpath="/ignored/writer/delivery/@_operation"/>

<set expr="[@id]" xpath="/ignored/writer/delivery/@id"/>

<soapCall name="Write" service="xtk:persist">

<param exprIn="[/ignored/writer/delivery]" type="DOMDocument"/>

</soapCall>

</if>

</postSave>

 

pradeep_07_0-1594827134844.png

Thanks,

 

Pradeep

Linking fields in web analytics

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

133 likes

Total Posts

806 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

133 likes

Total Posts

806 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile
Sukrity_Wadhwa
Employee

31-07-2020

Hi @pradeep_07,

Were you able to solve this?

Avatar

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

102 likes

Total Posts

300 posts

Correct Reply

96 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

102 likes

Total Posts

300 posts

Correct Reply

96 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile
_Manoj_Kumar
MVP

15-07-2020

Hello @pradeep_07 

 

If you want to have a the default value as Label add use the code below, instead of Post Save my suggestion would be to use enter. Because if the value is overridden manually then the value won't change because post-save will overwrite the manual entry.

 

The code to auto-populate the label will be 

<enter>
<set expr="iif(@label != '', @label, 'DEFAULT_VALUE_HERE')" xpath="webAnalytics/@tag1"/>
</enter>

 

Let me know if that works.

 

Thanks,