Hey team, thanks for the awesome tools.
There are 2 requirements for the landing page I’m building:
- Carry through URL params for tracking
- Open external links in a new tab
To achieve this, I was trying to use both External Link Targeting and Query Param Passthrough on the site.
I notice when I only use one or the other, the tool works as expected. The param passthrough works fine when I remove config.targetExternal = true, but no longer opens in a new tab. When I remove all config.passthrough settings, the new tab works but of course with no param passthrough.
Are they not meant to be compatible? Is there some issue with my config?
I am not sure if I can share the site without the owners permission but I’ll see… Thanks for any insight!
This is my site code:
<!-- Sygnal Attributes 5 | Needed for URL PARAM PASSTHROUGH -->
<script defer src="https://cdn.jsdelivr.net/gh/sygnaltech/webflow-util@5.4.25/dist/nocode/webflow-url.js"></script>
<!-- Sygnal Attributes 5 | Url External Link open in new tab | Config -->
<script>
window.sa5 = window.sa5 || [];
window.sa5.push(['urlConfig',
(config) => {
config.targetExternal = true;
config.passthrough = true;
config.passthroughConfig = {
ignorePatterns: ["ignore", /_page$/],
overwriteExisting: false,
internalOnly: false
};
return config;
}]);
</script>