Tracking Codes with two "?" | Community
Skip to main content
Level 2
November 25, 2019
Solved

Tracking Codes with two "?"

  • November 25, 2019
  • 3 replies
  • 3765 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asheesh_Pandey

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

3 replies

Asheesh_Pandey
Community Advisor
Asheesh_PandeyCommunity AdvisorAccepted solution
Community Advisor
November 25, 2019

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

August 4, 2020

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. 

Level 4
August 5, 2020

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

 

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