Marketing URL Parameters

NetSuite uses URL parameters on your Commerce website to track marketing campaigns, improve search engine optimization (SEO), and provide options for customization. URL parameters are added to the end of a URL to manipulate data that is sent and received by the browser.

There are three key URL parameters available for NetSuite customers in relation to marketing activities:

  1. Partner referral ID

  2. Lead source ID

  3. Promotion codes

Attach the partner referral and lead source parameters to your Commerce website’s pages (including pages for products and searches) to track the effectiveness of your marketing campaigns. For example, if you run an email campaign, you can see how many people clicked the links within the email to visit your web store.

Note:

URL parameters can be chained together with other URL parameters, such as those required by third-party analytics tools. For example, if you are creating a social media campaign, use lead source and promotions parameters to track where customers arrive from and give them a discount, if applicable.

Review the following information to learn more:

Partner Parameter

Partner parameters are used when operating referral schemes to track the performance of your partners. The partner parameter creates a cookie on the customer’s computer, marking all their transactions on the site with the ID of the partner. When the customer completes an order, it is tracked using the partner’s ID.

To enable the partner parameter in your Commerce website, first test it in your NetSuite account.

To test the Partner parameter:

  1. Create a new partner. Go to Lists > Relationships > Partner > New,

  2. Select a partner type: company or individual.

  3. Enter the partner's name. If the partner is a company, enter the name in the Company Name field. If the partner is an individual, enter the name in the Name fields.

    The Partner ID and Partner Code fields are generated automatically.

    Note:

    You can modify the Partner Code field to make it shorter or anonymous, if needed.

    Partner ID and Partner Code fields filled in.
  4. In the General tab, click on the Referral URL to open the partner’s web store. Note that the URL has a parameter and the partner code added onto the end.

  5. Use your browser’s developer tools to confirm the partner cookie was created.

    Note:

    The cookie lasts a year but the association with the partner is permanent. The association functions if the customers’ records exist.

  6. Place an order using the partner’s web store.

  7. View the sales order in NetSuite to confirm the order is associated with the partner. Go to Transactions > Sales > Approve Sales Orders.

  8. To view the sales order, click the date beside the order you placed in step 5.

    The following screenshot shows the Sales Information for the purchased item and confirms that the partner you created is associated with the sales order:

    Sales Information on a sales order with Partner field filled in.

Use the information obtained using the partner parameter to create reports and track how much your partners are contributing to your sales.

Lead Source Parameter

When you run marketing campaigns for your web store, the lead source parameter can be used to track if the campaigns contributed to any sales.

To test the Lead Source parameter:

  1. Create a new marketing campaign. Go to Lists > Marketing > Marketing Campaigns > New.

  2. Fill in the ID and Title fields and click Save.

    The following screenshot shows the marketing campaign fields:

    Marketing Campaign record with ID and Title filled in.
  3. Log out of your Commerce website.

  4. In your browser’s address bar, add the lead source parameter with its ID to the end of your Commerce website address, for example: ?leadsource=newsletter1016.

  5. Create a new user account for your web store and log in to that account.

  6. Add an item to the cart, go to checkout, and place the order.

  7. View the sales order in NetSuite to confirm the lead source parameter is associated with the order. Go to Transactions > Sales > Approve Sales Orders.

  8. To view the sales order, click the date beside the order you placed in step 6.

    The following screenshot shows the Sales Information for the purchased item and confirms that the lead source for the marketing campaign is associated with the sales order:

    Lead Source field filled in on sales order under Sales Information.
  9. When the Customer creates a new account using the lead source parameter in the URL, a new lead is generated. Go to Lists > Relationships > Customers to view a list of the new customers.

  10. Click View beside the name of the user you created in step 5.

    Under the Marketing tab and the Campaigns subtab, see the marketing campaign you set up as the Lead Source value.

    The following screenshot shows the Lead Source value in the customer record:

    Customer record with campaign displayed on Campaigns subtab.

Use the information obtained using the lead Source parameter to track its usage and measure the success of your marketing campaign.

Promotion Code Parameters

The promotion code parameter is used with promotions triggered by a coupon code. By using the format of ?promocode=YourPromoCode, you can automatically add the promo code to the user’s cart when they visit the URL.

Note:

You can track the usage of promo codes. However, when they are attached to a campaign, tracking the campaign instead of the code’s usage provides more accurate results. This is because promo codes may be shared between shoppers and published on third-party sites.

To learn more about promotion code parameters, see URL Parameters for Promotions.

Related Topics

General Notices