Social Media Links

Social media tracking will only function on campaigns created after July 26, 2013. Contact us for help adding the tracking code to older campaigns.

The social media links allows you place social media buttons (Facebook, Twitter, LinkedIn, Google+ and Email) on your PURL landing pages.  Purlem makes sharing and tracking social referrals extremely easy.

Add Social Links with Landing Page Editor

In your Landing Page editor, select the Social Links (Facebook) icon as seen below. 
The #sociaLinks tag will be placed into the landing page editor.

You may get an alert asking you to add a default landing page. This is because when someone else clicks on the shared link, they'll be redirected to a default landing page where they can enter their information.  Learn more about the default landing pages here.

As soon as a default page has been created, you'll be able to use the #socialLinks tag.

Like other custom content tags, the #socialLinks tag will be replaced with actual social media links whenever you preview or view the live PURL. 

Adding Custom Share Links

You can also add your own custom share links. The process will be different depending on if your adding the share link within Purlem's landing page editor, or directly through the landing page (index.php) file. 

Landing Page Editor

If you working with the landing page editor, you will want to create the share link using the following:

#campaign_url/#purlpage?r=#contactID&s=source
	

This would be translated into (for example):

http://domain.com/purlpage_campaign/index.php?r=1233321&s=source
	

Use the source variable (in bold in the examples above), to track which social network this is being shared through (Facebook, Twitter, etc...)

A full HTML link example would be:

<a href="#campaign_url/#purlpage?r=#contactID&s=facebook">Share This!</a>
	
Landing Page File (index.php)

If your adding the custom share link directly to the Landing Page (index.php) file itself, then we will work use the PHP variables to create the share links.  The share link will be format as so:

http://yourdomain.com/purlpage_campaign/index.php?r=<?= $visitor->contact_id; ?>&s=source
	

As mentioned above, the source variable (in bold in the examples above), can be used to track which social network this is being shared through (Facebook, Twitter, etc...)

A full HTML link example would be:

<a href="http://yourdomain.com/purlpage_campaign/index.php?r=<?= $visitor->contact_id; ?>&s=facebook">Share This!</a>