Attribute Overview
DataGlue captures and manages visitor attributes using a consistentglue_
prefix for easy identification. All attributes are stored across multiple storage mechanisms for redundancy and accessibility.
Storage Strategy
Persistent storage - Survives browser restarts
- User identification data
- Attribution history
- First-visit information
- Geolocation data
User Identification Attributes
glue_user_id
Unique identifier for each visitor using UUID v7 format
01234567-89ab-cdef-0123-456789abcdef
glue_user_firstseen
ISO timestamp recording when the user first visited the site
2024-01-15T10:30:00.000Z
glue_session_start
ISO timestamp recording when the current session started
2024-01-15T14:20:00.000Z
Attribution Tracking Attributes
DataGlue captures both initial and last-touch attribution for comprehensive tracking.First vs Last Touch: DataGlue preserves both the first touchpoint (how they originally found you) and the last touchpoint (what brought them back) for accurate attribution.
UTM Parameters
Platform-Specific Attribution
Facebook Click ID
Facebook click identifier for ad attribution
IwAR0Kg4h2k3j5l6m7n8o9p0q1r2s3t4u5v6w7x8y9z
Google Click ID
Google Ads click identifier for conversion tracking
CjwKCAjw_b-WBhAb123Example
TikTok Tracking ID
TikTok tracking identifier for ad attribution
tt_abc123def456
Session Tracking Attributes
URL Tracking
Browser Information
glue_user_browser
Browser detection results in JSON format
Form Data Attributes
Personal Information
Special Parameters
Calendly Integration
Calendly meeting or scheduling parameter
scheduled
, completed
, cancelled
Third-Party Integration Attributes
TikTok Attribution
DataGlue automatically captures TikTok attribution data from sessionStorage:Facebook Attribution
DataGlue automatically captures Facebook attribution data from cookies:Geolocation Attributes
glue_user_geolocation
IP-based geolocation data in formatted string
{country_code} | {country} | {city} | {latitude}, {longitude}
Example: US | United States | New York | 40.7128, -74.0060
Geolocation data is fetched asynchronously and may not be immediately available on the first page load.
Element Selectors & Form Integration
DataGlue uses sophisticated selector patterns to find and populate elements:Selector Patterns
Fillout Form Integration
For Fillout forms, DataGlue automatically adds data attributes:Valid Prefixes for Fillout
All attributes starting with
glue_
are automatically added:data-glue_user_id
data-glue_email
data-glue_fname
- etc.
API Usage Examples
Reading Attributes
Setting Attributes
Clearing Attributes
Browser Compatibility
Feature | Chrome | Firefox | Safari | Edge | IE11 |
---|---|---|---|---|---|
localStorage | ✅ | ✅ | ✅ | ✅ | ✅ |
sessionStorage | ✅ | ✅ | ✅ | ✅ | ✅ |
Cookies | ✅ | ✅ | ✅ | ✅ | ✅ |
Best Practices
Naming Convention: Use descriptive names for custom attributes and maintain the
glue_
prefix for consistency.Data Privacy: Ensure compliance with privacy regulations when collecting personal information. DataGlue respects
doNotTrack
browser settings.Recommended Patterns
- Consistent Prefixing: Always use
glue_
prefix for custom attributes - Descriptive Names: Use clear, meaningful names like
glue_lead_source
instead ofglue_ls
- Appropriate Expiration: Set reasonable cookie expiration times based on data sensitivity
- Graceful Fallbacks: Always check if data exists before using it
Security Considerations
- DataGlue automatically sanitizes stored values to prevent XSS
- No sensitive data is stored without explicit configuration
- All data is stored client-side unless explicitly sent to servers
- Uses CSS.escape() to safely handle special characters in selectors