Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature idea] "Cookie switch" #5

Open
jhilden opened this issue Dec 15, 2011 · 1 comment
Open

[Feature idea] "Cookie switch" #5

jhilden opened this issue Dec 15, 2011 · 1 comment

Comments

@jhilden
Copy link

jhilden commented Dec 15, 2011

That's a really nice gem, for a very common, real and annoying use case.

Have you considered including a DSL for something like a "cookie switch"? Because we often have the use case, that certain tracking pixels from affiliate partners should only be loaded if the user came through a certain campaign (and has a corresponding cookie, e.g. utm_source).

Something like:

cookie_segment :from_affiliate_a, {:utm_source => "affiliate_a"}

pixel "Affiliate pixel", :on => :all_pages, :segment => :from_affiliate_a, :owner => "Anna Lyst" do

Also, do you know any other gems that do something similar to rack-track?

@mikebaldry
Copy link
Owner

Thats an awesome idea, I don't have time to work on this right now, but I'd be happy to take a pull request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants