Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
Starter EditionEssentials EditionPro EditionEnterprise Edition

Create a Custom Widget

Develop dynamic tools that empower partners to promote your brand. Custom widgets allow you to embed externally-hosted tools or pages directly into the impact.com interface via an iframe. Use this guide to create and configure a custom content widget that provides personalized resources and a consistent brand experience for your partners.

1

Access the custom widget creator

  1. From the left navigation menu, select [Engage] → Content → Widgets.

  2. In the top-right corner, select Create Widget → Custom.

2

Enter widget details

  1. Enter a Name of the custom widget.

  2. Optionally, enter a Description for the custom widget.

  3. Optionally, enter a Label for the custom widget.

  4. If required, [Toggle on] Restrict Partner Access to specify individual partners and groups that should have access to the widget.

    • Partners: Enter the name of the partners that can access the custom widget.

    • Groups: Enter the name of the groups that can access the custom widget.

3

Configure the widget

  1. Select how the widget behaves from the display options:

    • Open in new tab: Opens the hosted URL in a separate tab.

    • Embed in impact.com: Displays the widget directly within the platform interface.

  2. Optionally, from the Preview Image section, select Choose File to upload a thumbnail. Ensure the file is a GIF, JPG, or PNG and does not exceed 512 KB.

  3. In the Widget URL field, enter the web address where your widget is hosted.

  4. From the [Drop-down menu], select the protocol (e.g., https://) that matches your site's security.

  5. Optionally, select [Add] Insert dynamic fields to expand the token list.

  6. Locate the token you want to use and select Insert. The platform will automatically append the token (e.g., {irpid}) to your Widget URL. Refer to the Dynamic field tokens section below for a description of each token.

4

Update advanced settings

From the Language [Drop-down menu], select the language in which this widget will display.

5

Finalize the custom widget

Select Create to save your widget. Partners can find this widget in Content Widgets.

Dynamic field tokens
Token
Description

{click_url_encoded}

Click URL encoded

{click_url}

Click URL not encoded

{irimpurl}

Our impression URL

{irpid}

Partner ID

{subid1}

Partner sub ID 1

{subid2}

Partner sub ID 2

{subid3}

Partner sub ID 3

{sharedId}

Shared ID

{iradid}

Ad ID

{ircid}

Program ID

{click_url_encoded_deeplink}

Encoded click URL with appended deep link parameter.

Worked examples

About these examples: Custom widgets are built and hosted by you — impact.com only embeds the hosted page and injects live partner data into it. Copy the reference implementations below, host them on your own domain, and adapt them. Partners never edit any code; they just open the finished widget from Content Widgets.

How dynamic field tokens reach your widget

When you add a dynamic field token to the Widget URL, impact.com replaces it with each partner's real values before loading your page. Your page reads those values from its query string and uses them to build trackable links.

For example, if you set the Widget URL to https://widgets.yourbrand.com/search?partner={irpid}&clickurl={click_url_encoded}, impact.com loads the following for a partner whose ID is 123456:

https://widgets.yourbrand.com/search?partner=123456&clickurl=https%3A%2F%2Facme.sjv.io%2Fc%2F123456%2F789012%2F3456

Example 1: Search widget

Lets a partner search your catalog and copy a trackable link for any product without leaving impact.com. You host the search page; impact.com passes in the partner's ID and click URL so every result link is attributed to that partner.

  1. Host the search page on a domain you control, over HTTPS (e.g., https://widgets.yourbrand.com/search). Replace the demo CATALOG array with a call to your own product catalog or search API.

  2. Create the custom widget using the five steps above. In Configure the widget, set the Widget URL to your page with the {irpid} and {click_url_encoded} tokens (shown below).

  3. Test with Open in new tab, run a search as a test partner, and confirm result links resolve to your site and record a click. Then switch the widget to Embed in impact.com.

Widget URL

search-widget.html

Example 2: Dynamic rich media ad (floating chat widget)

A dynamic rich media ad is any interactive HTML asset you host and embed as a widget. In this example, you'll build a floating chat bubble that expands into a promo message and a call-to-action. When the visitor selects the button, they're redirected through the partner's click URL, so the click is tracked and attributed.

  1. Host the page on a domain you control, over HTTPS (e.g., https://widgets.yourbrand.com/chat). Customize the copy, colors, and call-to-action to match your campaign.

  2. Create the custom widget using the five steps above, setting the Widget URL with the {click_url_encoded} token (shown below).

  3. Test with Open in new tab as a test partner, confirm the call-to-action opens your site and records a click, then switch the widget to Embed in impact.com.

Widget URL

To send visitors to a specific page instead of your default landing page, use the {click_url_encoded_deeplink} token in place of {click_url_encoded}, or append the destination in your own code as shown in Example 1.

chat-widget.html

Before you publish

  • Host it yourself, over HTTPS. impact.com embeds your page via an iframe or opens it in a new tab — it doesn't host your code. In embedded mode your page runs inside an iframe, so open destination links with target="_blank" or window.open(...) rather than navigating the parent window.

  • Encode the click URL. Pass it as {click_url_encoded} and decode it in your page so its own ? and & characters don't break your query string.

  • Confirm your deep-link format with your impact.com Integration Engineer, and make sure destinations are covered by your permitted domains for deep linking.

Additional resources

Last updated

Was this helpful?