Mardak / profile

2 stars 7 forks source link

Remember if the user sees a nytimes subscribe prompt #15

Closed Mardak closed 10 years ago

Mardak commented 10 years ago

Would be useful to know if the user has seen the 10 article/month limit message

mzhilyaev commented 10 years ago

We will record the fact (and the time) of such event(s).

oyiptong commented 10 years ago

We can find what the limit is. https://gist.github.com/oyiptong/8685106#file-static01-nyt-com-js-auth-growl-default-js-L61 The count is stored in a cookie and can be obtained by running:

var count = document.cookie.match(/v=i.([0-9]+)/);

Mardak commented 10 years ago

For both this and issue #17, the plan is to have a pre-submission XHR check for the json file (to record subscription and userid non-0-ness) and also records the nytimes.com nyt-m cookie value for v=i.#. If the request fails we'll want to continue with the submission anyway and record a failed status.