TNKR Hunter icon

TNKR Hunter

Send events to Hunter collector and create slugs

Create Slug

AI-generated

Overview

This node interacts with the Hunter API to perform operations related to event tracking and URL slug management. Specifically, the 'Create Slug' operation allows users to create a URL slug that maps to a destination URL with optional parameters such as a user ID, query string parameters, description, and redirect type. This is useful for creating short, manageable URLs that redirect to longer destination URLs, often used in marketing campaigns, tracking, or simplifying URLs for sharing.

Use Case Examples

  1. Creating a slug that redirects to a product page with specific query parameters for tracking.
  2. Generating a short URL for a campaign landing page with a description and server-side redirect.

Properties

Name Meaning
Slug Slug value to URL map to a destination (optional)
TNKR ID Optional user id (tnkrId)
Destination Destination URL for the slug redirection
URL Parameters Query string parameters for the slug redirection (param=value&...)
Description Description for the slug redirection
Redirect Type Client (c) or Server (s) redirect type

Output

JSON

  • json - Response from the Hunter API after creating the slug, containing details of the created slug operation

Dependencies

  • Hunter API accessed via HTTP requests using an API key credential named 'hunterApi'

Troubleshooting

  • Ensure the 'hunterApi' credential is correctly configured with a valid API key and endpoint URL.
  • The 'Destination' property is required; missing it will cause the request to fail.
  • If the slug already exists, the API might return an error; use unique slug values or handle duplicates appropriately.
  • Check network connectivity and API endpoint availability if HTTP requests fail.

Links

Discussion