Closed Bug 1203765 Opened 9 years ago Closed 7 years ago

Prevent Snippets from showing up once user takes an action

Categories

(Snippets :: Service, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jcollings, Unassigned)

Details

Giorgos,

Thinking we should explore this for all our snippets (obviously for the main templates we use).

Once a user takes an action on a specific snippet (clicking on a link, opting out, donating, etc.) they should not see the snippet again. I know we have this functionality for the opt-out. 

I saw you wrote on Github for Mofo that it is possible below:

Call addToBlockList() js function after an event, e.g. after user clicks on a link.

This is true?
I think this should be handled by the snippet itself, on a case by case basis, and not be a blanket cover for all snippets.

It does look like addToBlockList can be manually called by the snippet itself but I have not tried it yet.

Some brainstorming. It might be kinda interesting to lower the priority of a snippet that's been interacted with a certain amount, but not block it completely. This might be a bit more complex to implement, and maybe not worth it.
(In reply to Jean Collings from comment #0)
> This is true?

Yes it's true.
We can call addToBlockList after an event. This is custom to a template and it's documented here 

http://abouthome-snippets-service.readthedocs.io/en/latest/developing.html#snippet-block-list

There's nothing to do in this bug, if we need custom templates lets file separate bugs.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.