Skip to content

Commit

Permalink
Changed makeCalendly to allow background colors and pulling email an …
Browse files Browse the repository at this point in the history
…name parameters
  • Loading branch information
Grant Jordan committed Jun 9, 2022
1 parent 4a3ee94 commit 69626e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
13 changes: 10 additions & 3 deletions funnelScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const makeCalendlyUrl = (base_url, extra = "") => {
if (extra) {
extra = `&${extra}`;
}
let url = `${base_url}?hide_gdpr_banner=1&hide_event_type_details=1&primary_color=fca311&hide_landing_page_details=1${extra}`;
let url = `${base_url}?hide_gdpr_banner=1&hide_event_type_details=1&hide_landing_page_details=1${extra}`;

try {
$(function () {
Expand All @@ -129,8 +129,15 @@ const makeCalendlyUrl = (base_url, extra = "") => {
Cookies.get("utm_content") ||
getParameterByName("utm_medium") ||
"null",
name: Cookies.get("name") || "",
email: Cookies.get("email") || "",
name:
Cookies.get("name") ||
getParameterByName("name") ||
getParameterByName("fullname") ||
"",
email:
Cookies.get("email") ||
getParameterByName("email") ||
"",
};

for (const key in linkInject) {
Expand Down

0 comments on commit 69626e3

Please sign in to comment.