You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(const{ key, value }of(props.extraParams??[])){
36
+
if(key&&value){
37
+
src.searchParams.append(key,value);
38
+
noscript.searchParams.append(key,value);
39
+
}
40
+
}
41
+
32
42
return(
33
43
<>
34
44
<Head>
@@ -103,6 +113,19 @@ const snippet = () => {
103
113
});
104
114
});
105
115
};
116
+
117
+
/** @title {{key}} - {{value}} */
118
+
interfaceExtraParams{
119
+
/**
120
+
* @description key for extra param.
121
+
*/
122
+
key: string;
123
+
/**
124
+
* @description value for extra param.
125
+
*/
126
+
value: string;
127
+
}
128
+
106
129
exportinterfaceProps{
107
130
/**
108
131
* @description google tag manager container id. For more info: https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation .
@@ -118,13 +141,23 @@ export interface Props {
118
141
* @description custom url for serving google tag manager.
119
142
*/
120
143
src?: string;
144
+
/**
145
+
* @description extra params for google tag manager url.
146
+
*/
147
+
extraParams?: ExtraParams[];
121
148
/**
122
149
* @description Disable forwarding events into dataLayer
0 commit comments