Integrations

  1. Help Center
  2. Integrations
  3. Olark Integration

Olark Integration

Olark is a web chat service that you can place on your website to interact with visitors to your site. Along with Zapier, you can integrate Olark with WhatConverts and get your chat transcripts along with marketing data right on your WhatConverts dashboard.

1Copy” your Integration Code from Olark and “paste” it into a Notepad or Note file. Remove </script> and End of Olark Code from the script. “Paste” the following at the end of your Integration Code.

var cookie = source_v = medium_v = campaign_v = content_v = keyword_v = gclid_v = landing_page_v = '';
cookie = oqhaqzwnbjgcpycneryg('wc_client');
if (cookie) {
	var cookie_parts = cookie.split('+..+');
	if (cookie_parts[0])
		source_v = cookie_parts[0];
	if (cookie_parts[1])
		medium_v = cookie_parts[1];
	if (cookie_parts[2])
		campaign_v = cookie_parts[2];
	if (cookie_parts[3])
		content_v = cookie_parts[3];
	if (cookie_parts[4])
		keyword_v = cookie_parts[4];
	if (cookie_parts[5])
		gclid_v = cookie_parts[5];
	if (cookie_parts[6])
		landing_page_v = cookie_parts[6];
}

olark('api.visitor.updateCustomFields', {
	source: source_v,
	medium: medium_v,
	campaign: campaign_v,
	content: content_v,
	keyword: keyword_v,
	gclid: gclid_v,
	landing_page: landing_page_v
});
</script>

2Place your new Olark Integration Code on your website in place of the current Olark code on your website.
3Go to Zapier and “Make a Zap“. Select “Olark” as your Trigger App and “New Transcript” as the Trigger.

    Note: As you continue through setting up Olark in Zapier, you will be prompted to follow Zapier’s instructions to connect to a Webhook in Olark.

Test your Trigger step, click “View Your Transcript” and then “Continue“.

4Add “WhatConverts” as your Action Step. Select “Create Lead” then click “Continue“. Select your WhatConverts account to integrate with Olark.

    Note: If you have not set up a WhatConverts account in Zapier, you can follow the detailed instructions in Connecting to Zapier.

Set up your Template as follows:

    Lead Type: Chat
    Profile: Your WhatConverts Profile
    Referrer Source: Visitor Custom Fields Source
    Referrer Medium: Visitor Custom Fields Medium
    Referrer Campaign: Visitor Custom Fields Campaign
    Referrer Content: Visitor Custom Fields Content
    Referrer Keyword: Visitor Custom Fields Keyword
    IP Address: Visitor IP
    Gclid: Visitor Custom Fields Gclid
    Lead Page: Visitor Conversation Begin Page

Add the following field under Additional Fields:

    Transcript: Conversation

WhatConverts Template for Olark

Click “Continue” and send a test to WhatConverts. When the test is successful, you can name your Zap and turn your Zap “on“.