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.

1. Within your email or landing zone, highlight the text to turn into a link, and click on ‘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.

Query Strings - For Static Information

Simply add ?CampaignName=Example to the end of your URL.

Query Strings - For Dynamic Contact Data

For contact specific information you would use the name of the system field in the following format:

Itemname={Content/Person/FIELDNAME}

So, if you wanted to pass a contact’s firstname to the website you would add:

http://www.website.co.uk/?fname={Content/Person/FirstName}

When a contact clicks on the link the URL passed will be as follows:

www.website.co.uk/?fname=Neil

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:

http://www.website.co.uk/?fname={Content/Person/FirstName}&lname={Content/Person/LastName}&email={Content/Person/EmailLogin}

Which would result in:

www.website.co.uk/?fname=Neil&lname=Mullarkey&[email protected]

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 prepopulate the form. If passing your crm contact id you would structure your link as follows:

http://www.website.co.uk/?id={Content/Person/crmContactId}

Query Strings - Adding Campaign Code to the URL

Query Strings - Adding 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

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.