File tree 1 file changed +16
-25
lines changed
1 file changed +16
-25
lines changed Original file line number Diff line number Diff line change @@ -109,32 +109,23 @@ const makeCalendlyUrl = (base_url) => {
109
109
try {
110
110
$ ( function ( ) {
111
111
if ( $ ( "#iframe-inject-cal" ) . length ) {
112
+
113
+ let name = getTrackingId ( 'name' ) ;
114
+ if ( name === "null" ) {
115
+ name = getTrackingId ( 'fullname' ) ;
116
+ }
117
+ let email = getTrackingId ( 'email' ) ;
118
+ if ( email === 'null' ) {
119
+ email = '' ;
120
+ }
121
+
112
122
let linkInject = {
113
- utm_source :
114
- Cookies . get ( "utm_source" ) ||
115
- getParameterByName ( "utm_source" ) ||
116
- "null" ,
117
- utm_medium :
118
- Cookies . get ( "utm_medium" ) ||
119
- getParameterByName ( "utm_medium" ) ||
120
- "null" ,
121
- utm_campaign :
122
- Cookies . get ( "utm_campaign" ) ||
123
- getParameterByName ( "utm_medium" ) ||
124
- "null" ,
125
- utm_content :
126
- Cookies . get ( "utm_content" ) ||
127
- getParameterByName ( "utm_content" ) ||
128
- "null" ,
129
- name :
130
- Cookies . get ( "name" ) ||
131
- getParameterByName ( "name" ) ||
132
- getParameterByName ( "fullname" ) ||
133
- "" ,
134
- email :
135
- Cookies . get ( "email" ) ||
136
- getParameterByName ( "email" ) ||
137
- "" ,
123
+ utm_source : getTrackingId ( 'utm_source' ) ,
124
+ utm_medium : getTrackingId ( 'utm_medium' ) ,
125
+ utm_campaign : getTrackingId ( 'utm_campaign' ) ,
126
+ utm_content : getTrackingId ( 'utm_content' ) ,
127
+ name : name ,
128
+ email : email
138
129
} ;
139
130
140
131
for ( const key in linkInject ) {
You can’t perform that action at this time.
0 commit comments