Send alerts when post is read - sharepoint

I'm wondering whether SharePoint can send alerts to the administrators when blog posts get read. We want to track how many people (if any at all) are reading technical blog posts.
I have found a way to set alerts for when items change, but not when they get viewed.

No, this would not be possible with a "simple" solution - as in out-of-the-box. There is no "viewed item" event in any way.
You would either have to tap the SharePoint Analytics database and check when a specific user has viewed a specific page and upon that event send a mail. You most likely would have to code a timer job for that which checks in regular intervals for this.
Another (simpler) method would be to just have a small WebPart embedded on the blog post page which tracks who has viewed the page and sends alerts.
You should rethink what you are doing in any case. There is no good measure of when somebody really has read a blog post. Did somebody read the blog post if he just entered the URL? Maybe the click was an error and the user leaves the page right away. Maybe you only activate the "read" flag after a certain amount of time - how would you determine the time spent in the stateless web? With a JavaScript timer being started when the user arrives at the page, stopped when he leaves the page? How would you send the "stop" signal if the user just closes the browser?
You can track if a user visited a page - that does not mean he read the article / blog post. The only sure way to do that is to include a button on the page which says "I have read the blog post". Again, this button can be faked, i.e. just clicked without reading, but you have the users' word that he read the blog post. This would be the third solution and in my eyes best solution to track who has read a blog post: Implement a button which allows the user to mark a post as read. This could even be implemented nicely with a tracking-list, that list in turn could be subscribed to by an admin who would get automatic summaries of who has read an article, who hasn't.

Related

Gmail - Link to Draft in non-conversation view

I am importing/creating drafts in Gmail using the Gmail API. After creation I'd like to redirect the user to the Gmail UI with the opened Draft in the composer window.
I made it work properly for https://mail.google.com/mail/#drafts?compose=[MESSAGE ID]. Other urls I found here also worked well. Gmail is doing some redirects and eventually the composer window is opened with the draft.
Now my issue:
If the user has not enabled "Conversation view" this will not work at all. The redirect will then result in https://mail.google.com/mail/u/0/#drafts?compose=new and only an empty, new composer window is shown and a new draft is created by the UI.
If I open the draft directly the ID-format is different. https://mail.google.com/mail/u/0/#drafts?compose=hJzgZpSqgLQcCWgZqnlNRzRBfMbjZVnZklzvcFxhQCdwT... and I have no idea if this format can be generated somehow.
Does anybody has an idea or experience to also make it work with this UI setting. How I can force Gmail to load the draft into the composer window?
Thanks in advance.
If you have Email Threading > Conversation View enabled
Make use of the following URL
https://mail.google.com/mail/u/0/#inbox?compose=DRAFT_MESSAGE_ID
If you have disabled the Email Threading > Conversation View option
Make use of the following URL
https://mail.google.com/mail/u/0/#inbox/DRAFT_MESSAGE_ID
Additional information
The main difference between them is that the first is treated as a conversation while the second example is not.
You can use #drafts instead of #inbox in the URL.
The number after .../mail/u/ is the session you have opened
You can retrieve the DRAFT_MESSAGE_ID by making a request to the API
You can approximately generate the compose ID by yourself, there are some examples out there (not recommended). I strongly recommend you to use the DRAFT_MESSAGE_ID instead.
This appears to still be an issue the one solution I did find was that you can find your draft directly (even though it would be the last draft) and go through multiple accounts by redirecting to
https://accounts.google.com/AccountChooser?authuser={user account}&Email={email account}&continue=https://mail.google.com/mail/#search/rfc822msgid:CAMU-31NcJCVHyGNsAycRKfuS0nMonoaZ6wFMD90Sej996qjuPQ#mail.gmail.com
You need to get your message id toi replace the area from <> from your draft. So you'll have to create the draft first. Get the google message ID, then use that with messages/get to get the Global Message Id (also referred to as message id) and then use that with a search. At this point you'll open a page with a search to a single draft but it will not be opened. Your users will have to click on the one message. Unfortunately there does not seem to be a way to have the good way work for conversation view, and this way work for non.
I tried many different URLS and nothing worked. As noted in the original question, it might work that you could link to the full URL but I see no way to get that. If you spend long enough working with an email you'll even find that ID changes so they aren't even stable within a single day.
Another solution that could work is as explained:
https://mail.google.com/mail/u/0/#inbox/DRAFT_MESSAGE_ID
But as noted this does not open the draft on the first time you go there. It seems you have to travel to that link 2 times in a row to get the message to appear. I guess you could go to the page maybe inject some javascript to go to the page again but I don't know how to do that.

Kentico 8.2 Newsletter Link and unsubscribe link

I have created a contact form under Forms with first name, last name, and email that is designed to sign up people for a newsletter. I then created a page so when people click on the link placed on the home page it takes them to a page with the contact form.
Right now when I test the subscribe form out, the data does to to the "back office" where it can be retrieved. However, the information I entered is still in the text fields and, unless you notice the small flash of the web page, one might think nothing happened.
I'd like to know how (or be directed to somewhere in the Kentico 8.2 Documentation) I can make it so that the fields clear and a message appears saying "You have been subscribed to the newsletter." That message can either appear on a separate page on the web site, or send a message to the user email, or both. In the Email Marketing part under the templates there are Subscribe and Unsubscribe templates, but I don't know how to use those.
The other issue is creating an Unsubscribe link. Ideally that will open up to a new page saying "You have been unsubscribed." Kentico 8.2 has an unsubscribe page you can create where the user enters in an email address and then hits the Unsubscribe Request button, but I'd rather not do that. As it stands, I did create a page with that form and tested it, but it doesn't seem to work.
When you edit your form, under general tab, there are settings for what will happen after the form is submitted:
Display Text
Redirect to URL
Clear Form
Continue Editing.
Currently you're using the standard Forms application for something which can be managed through the Newsletter/Email Campaign module. Read the documentation more on how to configure this vs. using the Forms application.
Essentially the steps you will do are:
Create your newsletter following the directions in the linked documentation.
Place a newsletter subscription webpart on your page template and configure it to the newsletter you want them to subscribe to.
Use the out of the box unsubscribe feature to allow users to unsubscribe to your newsletter. No need to add any page to the content tree but you can if you want OR just use the OOTB functionality.
If you follow the documentation you should be able to get it setup properly vs. using an online form.

Twilio SMS with links - links being clicked automatically?

I have an app that sends SMS's out to a bunch of people. Those messages contain links. They are not using any link shorteners or any other service. They link back to my site. The links themselves are randomized strings, which are stored in my db, which are associated with an action. (Click "yes" or "no" link and the db tracks what you chose.) For ALL users, this works perfectly. With one user - and it's always the same user, as soon as the cron job runs, which triggers this event, his "vote" comes in. This is without him clicking or even seeing the message sometimes.
So, the question: has anyone ever seen or heard of a cell provider or a messaging app or similar that "clicks" links as part of some process before sharing the content with the user? I can't see ANYTHING in the code that would single him out so I'm thinking it has to be something in between when the message goes out and he does what he does. Especially because the timestamp is also always within seconds of the cron job running.
Sending an SMS can sometimes go through multiple carriers before reaching an end destination. As such, providers may be "handling" the content in this case.
The best thing to do would for any cases of this in the future would be to write support for further investigation.

Application Registration to use End Points (Likes, Comments, Relationship) with Instagram

I want to request approval for using the End Points of LIKES, COMMENTS and Relationships in my application via instagram API.
In order to do so, i am filling the form given at following link in order to get the approval from Instagram
https://help.instagram.com/contact/185819881608116
After i fill all the information along with screen shots and click send, it doesn't give me any confirmation of receiving details of my application or send me any confirmation email.
Instead it takes me Help page at "Something's Not Working". First time, i thought i made a mistake and second time i tried after log in to my Facebook account but same thing happened again.
Please confirm if any body faced the similar situation and got a solution.

mturk on external website

I just had a quick question on making a survey on an external link as a HIT on Amazon Mechanical Turk. If a user completes the survey on the external webpage and submit the survey code on the MTurk interface, how do I, as the requester, guarantee that the user won't do the survey again? As in the user should only do the survey once. So is there a way to only allow the user to click on the survey link only once? Thank you!
Each worker is restricted to completing a HIT only once. Of course, if you setup your survey software to not log each worker's WorkerId, it is possible they might click the link multiple times before completing the HIT.
I recommend logging the WorkerId in your survey sytem. You can take a look at some instructions I've put together here for how to achieve this using JavaScript.
I usually ask each worker to submit their workerID on my hit interface. I use their ID along with some other information to generate their code. So, I can cross-check their amazon mturk responses with responses logged on my server.

Resources