How to use Query Strings
Within the product, it is possible to pass static, contact and campaign data to external websites for use with other systems.
This may include the following:
Static - Any value that would need to pass into the external site, such as the campaign name.
Contact - Any contact information such as first name, or contact ID.
Campaign - The campaign code assigned at campaign level. This is handled automatically once set and takes the format of CC=YOURCAMPAIGNCODE within the URL.
Creating the Link
1. Within your email or landing zone, highlight the text and click 'Insert Weblink'.
2. Add the URL of the page that the contact should be sent to.
3. You then need to add the information to pass, at the end of the URL. This is done by adding a question mark (if one doesn’t already appear within the URL) and then setting the information.
For Static Information
Simply add ?CampaignName=Example to the end of your URL.
For Dynamic Contact Data
For contact specific information you would use the name of the system field in the following format:
So, if you wanted to pass a contact’s firstname to the website you would add:
When a contact clicks on the link the URL passed will be as follows:
You can pass multiple values by adding an ampersand ‘&’ between each piece of information. So if you wanted to pass first name, last name and email address you would structure the URL as follows:
Which would result in:
Passing this information does make it visible within the URL. Alternatively, you can pass a contact id, so that any form on the page can use this information in order to pre-populate the form. If passing your CRM contact id you would structure your link as follows:
Adding a Campaign Code to the URL
By adding a campaign code to each campaign, the product will pass this with every link that is clicked within the campaign in the following format; CC=YOURCAMPAIGNCODE.
Within the campaign planner go to the detail tab –> advanced details and add your campaign code in. This will then be passed into your URL.