How to pass a parameter in the URL as a custom field to my integration

You can pass info from a query parameter in a URL through your lightbox as a custom field. To set this up, follow these instructions.

Step 1

Firs set up a URL using a query parameter. For this example, we’re using https://help.digioh.com/?testparam=test

Step 2

On the Boxes page in Digioh, open the Dynamic settings for the lightbox you want to work with.

Step 3

Create a new dynamic item.

Step 4

Set the source as URL Param and enter the URL Param name. In the case of the URL mentioned in Step 1, the URL Param is testparam. Set the operator to “contains” and decide whether you want it to be case sensitive. Set Source Value Matches to Anything, and set the target as a custom field. In this case, we’re using Custom 1. Set Target Fill to Source Value, and enter some fallback text to be used if the query param you’re targeting isn’t present. When you’re done, the page will look like this:

Step 4

Save the dynamic item, and on the Dynamic page, click Publish.

Step 5

Now head to a page on your site with a URL containing the query parameter you targeted with the dynamic item. Enter a submission in your lightbox.

Step 6

After entering a test submission, head to Analytics > Submissions > Advanced to see the value set in the query parameter in the Custom 1 field.

That’s all there is to it! Any value set for the query parameter in the URL will carry over to Custom Field 1 when a visitor submits info through the lightbox.

If you have any questions, or if you’d like help setting this up, send us an email and we’ll be glad to help!