Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

Tracking Codes with two "?"

Avatar

Level 2

Hi everyone,

is there an option to track URLs with CID parameters like:

domain.com/pages/viewpage.action?pageId=374342432

When I add a ?cid parameter to the url, the website is not available or gets an 404 error.

Possibly because the two "?".

domain.com/pages/viewpage.action?pageId=374342432?cid=MAIL:...

I tried:

domain.com/pages/viewpage.action?pageId=374342432&?cid=MAIL:...

Here is the link working, but the tracking seems not to track.

Ps: I deleted the https because I don't wanted that the domain gets linked.

I'm happy about any help!

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

In your second example remove second ? to make it work. E.g. domain.com/pages/viewpage.action?pageId=374342432&cid=MAIL:...

Rules:

If you using cid param first than use ?cid= just after end of page url.

eg. domain.com/home?cid=MAIL..

If there is already a ? in page url like yours just use &cid=

eg. domain.com/pages/viewpage.action?pageId=374342432&cid=MAIL:...

Thanks,

Asheesh

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

In your second example remove second ? to make it work. E.g. domain.com/pages/viewpage.action?pageId=374342432&cid=MAIL:...

Rules:

If you using cid param first than use ?cid= just after end of page url.

eg. domain.com/home?cid=MAIL..

If there is already a ? in page url like yours just use &cid=

eg. domain.com/pages/viewpage.action?pageId=374342432&cid=MAIL:...

Thanks,

Asheesh

Avatar

Level 1

Hi there,

 

Because you can only have one question mark in a query string or it freaks out your website, here's how you should build the URL:

 

Your Original URL: domain.com/pages/viewpage.action?pageId=374342432&?cid=MAIL:...

Correct URL: domain.com/pages/viewpage.action?pageId=374342432&cid=MAIL:...

 

Note the second question mark in front of the cid= was removed. 

Avatar

Level 4

You can use ameprsand sign for sending multiple query parameters as shown below:

 

www.example.com?cmpid=hhhh&source=ssss&medium=dddd