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

Support for Criteo #17

Merged
merged 19 commits into from
Mar 26, 2015
Merged

Support for Criteo #17

merged 19 commits into from
Mar 26, 2015

Conversation

jhilden
Copy link
Contributor

@jhilden jhilden commented Jan 22, 2015

This PR also already includes the changes from #16 After that one is merged the changes should be more readable.


self.position = :body

def tracker_options
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since criteo supports setting those as events, they can be then triggered as events and we don't have to jump through hoops like we did for GA in #15

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be -1 for users settings this manually for each criteo request. It should be set once in an initializer. But maybe I didn't fully understand the suggestion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, but then look into the last changes in #15 to make this more generic. I see a chance here of making them into Event objects and prepend them into the events array.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. that sounds like a good idea.

* use only one loop in the .erb template
* add global events (setSiteType, setAccount, setCustomerId) as Rack::Tracker::Criteo::Events
end

describe '#tracker_events' do
subject { described_class.new(env, { set_account: '1234', set_site_type: ->(env){ 'd' }, set_customer_id: ->(env){ nil } }) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add another spec where the parameters are not Procs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a couple more specs in d37c486

@salimhb
Copy link
Member

salimhb commented Jan 27, 2015

looks good

@kangguru
Copy link

kangguru commented Feb 3, 2015

please remove pry-debug as this is not a runtime dependency

@jhilden
Copy link
Contributor Author

jhilden commented Mar 10, 2015

can this PR be merged?

@kangguru
Copy link

please add it to the readme, then lets merge it

@DonSchado
Copy link
Collaborator

@jhilden ping? :)

@jhilden
Copy link
Contributor Author

jhilden commented Mar 26, 2015

updated the README. i think this can be merged now.

DonSchado added a commit that referenced this pull request Mar 26, 2015
@DonSchado DonSchado merged commit d818e38 into master Mar 26, 2015
@DonSchado DonSchado deleted the criteo branch March 26, 2015 12:42
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

Successfully merging this pull request may close these issues.

None yet

4 participants