Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(marketing): move demo and partner booking links to Macro (#8166)

Chaitanya Agarwaleea1e661948b
diff --git a/apps/marketing/src/app/routes/RoutePartnerTerms.tsx b/apps/marketing/src/app/routes/RoutePartnerTerms.tsx
index 23b4ff1625..bc2be0c1bc 100644
--- a/apps/marketing/src/app/routes/RoutePartnerTerms.tsx
+++ b/apps/marketing/src/app/routes/RoutePartnerTerms.tsx
@@ -587,7 +587,7 @@ Headings are for convenience only and do not affect interpretation.
## 24. Partner Kickoff
-After acceptance into the Program, new Partners are encouraged to schedule a Macro Partnerships kickoff call: [cal.com/team/macro/partnerships-program](https://cal.com/team/macro/partnerships-program).
+After acceptance into the Program, new Partners are encouraged to schedule a Macro Partnerships kickoff call: [Partnerships Program booking page](https://macro.com/app/book/6de4003c-15e4-549f-b5a9-0e930bbf56e4/partnerships-program).
The kickoff call may be used to discuss Partner's business, specialties, potential customer opportunities, implementation capabilities, product questions, and ways Macro and Partner can work together.
diff --git a/apps/marketing/src/app/routes/RoutePartners.tsx b/apps/marketing/src/app/routes/RoutePartners.tsx
index cf10a52f0c..847c2eda26 100644
--- a/apps/marketing/src/app/routes/RoutePartners.tsx
+++ b/apps/marketing/src/app/routes/RoutePartners.tsx
@@ -9,14 +9,14 @@ import partnerAnnouncementPoster from '../../assets/partners/partnership-program
import { HomeSectionRule } from '../components/sections/HomeSectionRule';
import { type FaqItem, SectionFaq } from '../components/sections/SectionFaq';
import { SectionMoreFeatures } from '../components/sections/SectionMoreFeatures';
-import { buildCalLinkWithAttribution } from '../utils/utilAnalytic';
import { demoHref } from '../utils/utilCta';
import { setPageSeo } from '../utils/utilSeo';
import '../../routes/posts/posts-shell.css';
import './partners-hero.css';
const SUPPORT_EMAIL = '[email protected]';
-const KICKOFF_URL = 'https://cal.com/team/macro/partnerships-program';
+const KICKOFF_URL =
+ 'https://macro.com/app/book/6de4003c-15e4-549f-b5a9-0e930bbf56e4/partnerships-program';
const partnerFaq: FaqItem[] = [
{
@@ -115,7 +115,7 @@ function PartnerCtaBar() {
<div class="partners-actions">
<a
class="partners-action partners-action-primary"
- href={buildCalLinkWithAttribution(KICKOFF_URL)}
+ href={KICKOFF_URL}
target="_blank"
rel="noreferrer"
>
diff --git a/apps/marketing/src/app/utils/utilAnalytic.ts b/apps/marketing/src/app/utils/utilAnalytic.ts
index 95e2c0ecac..094ca735a7 100644
--- a/apps/marketing/src/app/utils/utilAnalytic.ts
+++ b/apps/marketing/src/app/utils/utilAnalytic.ts
@@ -258,62 +258,3 @@ const createAnalytics = () => {
};
export const analytics = createAnalytics();
-
-/**
- * Collect the Meta attribution signals available in the current browser
- * session. Passed through cal.com (via URL `metadata[...]` params for link
- * flows, or embed `config.metadata` for inline flows) so the backend's
- * server-side Lead event can include them in `user_data` — giving Meta
- * enough to match the conversion back to the originating ad/browser.
- *
- * `user_agent` is opt-in via `includeUserAgent` because it URL-encodes to
- * ~300 chars and bloats visible cal.com links. Embed flows default to
- * including it (it rides in a JS object, not a URL).
- */
-export const getCalBookingAttribution = (
- options: { includeUserAgent?: boolean } = {}
-): Record<string, string> => {
- const { includeUserAgent = true } = options;
- const signals: Record<string, string> = {};
-
- if (typeof document !== 'undefined') {
- const cookies = document.cookie.split('; ');
- for (const entry of cookies) {
- const idx = entry.indexOf('=');
- if (idx <= 0) continue;
- const name = entry.slice(0, idx);
- const value = decodeURIComponent(entry.slice(idx + 1));
- if (name === '_fbp' && value) signals.fbp = value;
- if (name === '_fbc' && value) signals.fbc = value;
- }
- }
-
- if (
- includeUserAgent &&
- typeof navigator !== 'undefined' &&
- navigator.userAgent
- ) {
- signals.user_agent = navigator.userAgent;
- }
-
- return signals;
-};
-
-/**
- * Build a cal.com link with attribution signals appended as
- * `?metadata[key]=value` params. Cal.com forwards these to the webhook
- * under `payload.metadata`. `user_agent` is omitted here to keep the URL
- * readable — embed flows still send it.
- */
-export const buildCalLinkWithAttribution = (baseUrl: string): string => {
- const signals = getCalBookingAttribution({ includeUserAgent: false });
- try {
- const url = new URL(baseUrl);
- for (const [key, value] of Object.entries(signals)) {
- url.searchParams.set(`metadata[${key}]`, value);
- }
- return url.toString();
- } catch {
- return baseUrl;
- }
-};
diff --git a/apps/marketing/src/features/marketing/core/navigation.ts b/apps/marketing/src/features/marketing/core/navigation.ts
index 08696e12ac..3a7e46b0ca 100644
--- a/apps/marketing/src/features/marketing/core/navigation.ts
+++ b/apps/marketing/src/features/marketing/core/navigation.ts
@@ -21,7 +21,7 @@ export const RESOURCE_PAGES = [
/** Macro team booking link: a live demo with whichever host is free. */
export const DEMO_BOOKING_URL =
- 'https://macro.com/app/book/6de4003c-15e4-549f-b5a9-0e930bbf56e4/demo';
+ 'https://macro.com/app/book/6de4003c-15e4-549f-b5a9-0e930bbf56e4/macro-demo';
const MOBILE_SIGNUP_HREF = '/mobile-signup';