Tracking Breaking When Using Search Bar In Email

Avatar

Avatar
Validate 1
Level 1
lcharlwood
Level 1

Like

1 like

Total Posts

19 posts

Correct reply

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

Avatar
Validate 1
Level 1
lcharlwood
Level 1

Like

1 like

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
lcharlwood
Level 1

17-09-2020

Hello.

 

We are looking to start using search bars in the headers of our emails so a customer can type in their local town and on click, it takes them through to the website of the closest site to them, see below.

 

lcharlwood_0-1600358277883.png

 

However, we're having an issue with the tracking breaking - if tracking is disabled for this link it works perfectly but if tracking is kept on the link it does not work and a 'requested URL cannot be found' error message is displayed.

 

The below script is used in the HTML for the search bar to pull in what the customer inputs but it appears the GA tracking doesn't like it when applied and breaks. To note, the 'abcd' in the below is just for illustrative purposes.

 

<form action="https://www.abcd.co.uk/abcd/" method="get" name="search_form" id="search_form">

 

Any ideas on how I can get this functionality to work but with the tracking enabled?

 

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

126 likes

Total Posts

329 posts

Correct reply

103 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

126 likes

Total Posts

329 posts

Correct reply

103 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile
_Manoj_Kumar
MVP

21-09-2020

Hello @lcharlwood 

 

If the tracking is enabled for the form action URL then it won't work because the action URL will be replaced with the adobe tracking URL and that tracking URL does not support form submission with extra parameters and even if you manage to support the extra search parameter then the tracking URL will not forward your search query to https://www.abcd.co.uk/abcd/

 

You will have to disable the tracking for this URL to make this work.

 

Thanks

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,097 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,097 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

20-09-2020

Hi,

 

This works fine for me. Are you applying GA with click formula?

 

Thanks,

-Jon

Avatar

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

169 likes

Total Posts

930 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

169 likes

Total Posts

930 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile
Sukrity_Wadhwa
Employee

21-10-2020

Hi @lcharlwood,

Were you able to resolve this query with any of the given solutions? Let us know if you need more help.

Thanks!