Key-Values
Configure custom key-value pairs to pass additional data to Big Crunch for targeting and reporting purposes.
Initialize BCLighthouseTag
Place above the general Big Crunch script to ensure variables are defined before Big Crunch code loads.
First, initialize the BCLighthouseTag variables:
window.BCLighthouseTag = window.BCLighthouseTag || {};
window.BCLighthouseTag.cmd = window.BCLighthouseTag.cmd || [];
Set Account Type
Set acct_type to be passed into Big Crunch reporting:
window.BCLighthouseTag.metadata = {
acct_type: "subscriber",
};
Available Account Type Values
guest- Non-authenticated visitorlogged_in- Authenticated userpaid- User with paid subscriptionsubscriber- Newsletter or content subscriberfree- Free account holder
Use Cases
Account type tracking enables:
- Audience Segmentation - Analyze behavior by user type
- Revenue Analysis - Compare monetization across user segments
- Content Strategy - Understand which content resonates with each audience
- Subscription Optimization - Track conversion funnels from guest to paid
Google Ad Manager Key Values
Set key-values for GAM key-value reporting and targeting.
Key-values must also be created within Google Ad Manager for reporting and targeting to work properly.
window.BCLighthouseTag.cmd.push(function () {
BCLighthouseTag.setTargeting("website", "bigcrunch.com");
BCLighthouseTag.setTargeting("acct_type", "subscriber");
});
Common Google Ad Manager Key-Value Examples
window.BCLighthouseTag.cmd.push(function () {
// Website identifier
BCLighthouseTag.setTargeting("website", "bigcrunch.com");
// User account type
BCLighthouseTag.setTargeting("acct_type", "subscriber");
// Content category
BCLighthouseTag.setTargeting("category", "sports");
// Page type
BCLighthouseTag.setTargeting("page_type", "article");
// Author
BCLighthouseTag.setTargeting("author", "john-smith");
});
Complete Example
// 1. Initialize BCLighthouseTag
window.BCLighthouseTag = window.BCLighthouseTag || {};
window.BCLighthouseTag.cmd = window.BCLighthouseTag.cmd || [];
// 2. Set Big Crunch metadata
window.BCLighthouseTag.metadata = {
acct_type: "subscriber",
};
// 3. Set GAM targeting
window.BCLighthouseTag.cmd.push(function () {
BCLighthouseTag.setTargeting("website", "bigcrunch.com");
BCLighthouseTag.setTargeting("acct_type", "subscriber");
BCLighthouseTag.setTargeting("category", "sports");
});
// 4. Load Big Crunch script (see Installation)