Use dynamic links to Jotform from my shopify page

Hello,

I have a Button on my Shopify Homepage, to a Jotform Formular.

I want to integrate something like:

{%- capture contentForQuerystring -%}{{ content_for_header }}{%- endcapture -%}
{%- assign page_url = contentForQuerystring | split:'"pageurl":"' | last | split:'"' | first | split:'.myshopify.com' | last |   replace:'\/','/' |    replace:'%20',' ' |    replace:'\u0026','&'  -%}
{%- assign query_string = page_url | split:'?' | last -%}
{%- if query_string == "sca_ref=1820687.C5JGoCmbl0" -%}
    
{%- elsif query_string == "sca_ref=1397919.BsiiYQaUc7" -%}
    
{%- else -%}
	
{%- endif -%}

But as always, shopify cache my link and I can“t change the hole day something in my theme to clear the cache^^
Do anyone have a good solution for me?

Thanks ind advance

okay, nevermind, found a better solution via javascript, now it is working as I want, thanks :grinning_face_with_smiling_eyes: