Capturing HTML Attribute with Adobe Launch

Avatar

Avatar

eham06

Avatar

eham06

eham06

23-07-2019

I am looking to capture an HTML attribute upon a click.

The link is "More Details".

I want to capture the value in cst-text.

How would I configure Adobe Launch to capture the value in cst-text from my example below?

I configure Adobe Launch to use this.cst-text which isn't working for me.

Any recommendations are appreciated.

cst-text-example.png

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

24-07-2019

Hi Eham,

Try this

Method 01

Goto Launch => Property name => Extension => Configure tracking code with custom code and paste the below code

1798804_pastedImage_0.png

var x = document.getElementsByTagName(button).getAttribute(csk-text);

evar1 = var x

Use the 1 as per the evar number availablity

Method 02

Goto Launch => Property name => Data element

1798802_pastedImage_18.png

Post this code in open editor: var x = document.getElementsByTagName(button).getAttribute(csk-text);

then Add Rule

Goto Launch => Property name => Rule

1798803_pastedImage_19.png

Hope this helps.

Regards,

Kumararaja K

Answers (5)

Answers (5)

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Avatar

jantzen_belliston-Adobe

Community Manager

jantzen_belliston-Adobe
Community Manager

03-09-2019

You should see a "Correct Answer" button on each of the replies. Click that button on the reply that answers your question.

As a side note, I noticed you might have two accounts and this question was asked from a @gmail.com account rather than the account you are now responding from. This might be why you are unable to see the correct answer button. I'll go ahead and mark this one correct for you since there is only one real answer.

Avatar

Avatar

EHAM06-EYgGqp

Avatar

EHAM06-EYgGqp

EHAM06-EYgGqp

30-08-2019

How do I mark as correct?

Avatar

Avatar

EHAM06-EYgGqp

Avatar

EHAM06-EYgGqp

EHAM06-EYgGqp

30-08-2019

I do I mark as correct?

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Avatar

jantzen_belliston-Adobe

Community Manager

jantzen_belliston-Adobe
Community Manager

02-08-2019

Does the reply above answer your question? If so, please mark it as the correct answer.

Avatar

Avatar

EHAM06-EYgGqp

Avatar

EHAM06-EYgGqp

EHAM06-EYgGqp

02-08-2019

Thank you