Wednesday, November 14, 2018

Capture NetSuite URL Parameters from Marketing Links for WSDK Web Sites

Currently when users create a link to a WSDK or External Catalog Web Store, NetSuite URL Parameters (e.g. leadsource, promocode) are not coming in to NetSuite. The reason for this is the parameter information is not reaching NetSuite servers directly and the information is not passed or bounced to NetSuite from the third-party web site.

An alternate solution for this is to make the marketing link point to a page hosted in the third-party web site and and let the page forward the URL parameters to NetSuite. After hitting the NetSuite server, through a web site tab or category, bounce back to the correct page in the third-party site.

Prerequisite: Requires working knowledge in HTML and JavaScript

A. Prepare a Web Site Tab

You can create one under Lists> Web Site> Tabs if you are an Administrator. It may be on a different path if you are using a different role. Add the following script in the Meta Tag HTML of the tab and insert the URL of the page you want to show from the third-party site:

Save the tab and make note of the internal ID. Set aside a copy of the following URL:

http://shopping.netsuite.com/s.nl/c.XXXXXX/sc.YY/.f

NOTE:
From the URL above, XXXXXX is your account number and YY is the internal ID of the newly created tab

B. Create the page to be hosted in the third-party site

Here is a sample code of what you can insert in the head tag of the HTML file that will be uploaded in the non-NetSuite or third-party web site:

Once the file is uploaded, make note of its URL. For example http://third-party-site.com/promo.html then you can add the URL parameter at the end of it to make http://third-party-site.com/promo.html?leadsource=campaignemail and include it in your marketing emails.

 

No comments:

Post a Comment