mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
613343bbaf
Integrated Z.AI (GLM Coding Plan) as official sponsor with comprehensive website presence and tracking. Partnership Features: - Partnership banner with Z.AI branding on homepage - GLM Coding Plan setting for Claude Code integration - Sponsored by Z.AI badge in stats section - Partnership section in README with discount link - Vercel OSS Program badge added Components Added: - Setting: partnerships/glm-coding-plan (GLM-4.6 API configuration) - Banner: Full-width responsive partnership banner - Badge: "Sponsored by Z.AI" in badge collection Tracking Implementation: - UTM parameters for all Z.AI links (source, medium, campaign) - Google Analytics event tracking for banner clicks - Separate tracking for banner vs README vs badge clicks Technical Details: - Responsive banner design (200px desktop → 100px mobile) - Background matches site theme (#0d1117) - Lateral padding shows site background - All links open in new tab with proper rel attributes Files Modified: - README.md: Added partnership section - docs/index.html: Banner + badge integration - docs/components.json: New GLM setting included - cli-tool/components/settings/partnerships/glm-coding-plan.json Files Added: - docs/css/partnership-banner.css - docs/js/partnership-banner.js - docs/static/img/image.png Partnership Terms: - Monthly fee: $1,500 USD - Discount code: 10% OFF (ic=8JVLJQFSKB) - Sponsor: Z.AI (https://z.ai) - Service: GLM CODING PLAN ($3/month starting) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
/**
|
|
* Partnership Banner - GLM Z.AI
|
|
* Handles banner click tracking
|
|
*/
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
/**
|
|
* Initialize partnership banner
|
|
*/
|
|
function initPartnershipBanner() {
|
|
// Track CTA clicks
|
|
const primaryCTA = document.getElementById('partnershipPrimaryCTA');
|
|
if (primaryCTA) {
|
|
primaryCTA.addEventListener('click', function(e) {
|
|
trackEvent('partnership_click', {
|
|
partner: 'z.ai',
|
|
action: 'subscribe_link',
|
|
component: 'glm-coding-plan'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Track analytics event
|
|
*/
|
|
function trackEvent(eventName, params) {
|
|
// Google Analytics (gtag)
|
|
if (typeof gtag === 'function') {
|
|
gtag('event', eventName, params);
|
|
}
|
|
|
|
// Console log for debugging
|
|
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
|
|
console.log('Partnership Banner Event:', eventName, params);
|
|
}
|
|
}
|
|
|
|
// Initialize on DOM ready
|
|
if (document.readyState === 'loading') {
|
|
document.addEventListener('DOMContentLoaded', initPartnershipBanner);
|
|
} else {
|
|
initPartnershipBanner();
|
|
}
|
|
})();
|