Skip to content

Dynamically swap phone numbers on your website based on UTM parameters. Track which marketing campaigns drive phone calls.

Notifications You must be signed in to change notification settings

ChristopherLandaverde/-Dynamic-Phone-Inserter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Dynamic Phone Inserter

A lightweight, production-ready solution for dynamic phone number insertion based on UTM parameters. Built for marketers and developers who need reliable call attribution without monthly SaaS fees.

What It Does Automatically swaps phone numbers on your website based on traffic source, campaign, or any UTM parameter. When someone clicks your Google Ad, they see a different tracking number than someone coming from Facebook or email campaigns. Key Features:

UTM-based phone number switching (source, medium, campaign, etc.) CSS selector-based targeting for precise control Cross-page UTM persistence with configurable expiration Dynamic content support (SPAs, AJAX sites) Automatic link (tel:) updates Zero external dependencies

Quick Start

Add to GTM: Copy the script into a Custom HTML tag Configure: Edit the mappings for your campaigns Deploy: Set trigger to "All Pages" and publish Test: Visit with UTM parameters to see numbers change

About

Dynamically swap phone numbers on your website based on UTM parameters. Track which marketing campaigns drive phone calls.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published