ExpressionEngine conditional based on Google Analytics URL tags -


i trying create conditional statement in expressionengine displays content based on utm_source variable in url google analytics campaign information.

if, example, url

"www.mysite.com/landingpage/?utm_source=one" content displayed

and if url

"www.mysite.com/landingpage/?utm_source=two" other content displayed.

to started, tried:

{if segment_3 == "?utm_source=one" }     special {/if} 

but expressionengine not appear recognize url tag info 3rd segment. ideas how might approach this?

thanks,

-michael

one found out today: mo variables

then code this:

{if "{get:utm_source}" == "one"}     special {if:elseif "{get:utm_source}" == "two"}     special {if:else}     boring {/if} 

there others like one i've used before says on tin. whereas mo variables whole lot more.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -