Check Whether links are clicked in body of mail with sendGrid API - sendgrid

I have a number of links which needs to be sent in the mail. How can i track whether the links in the mails are clicked or not, and which links are clicked.
I do not have control over the links which are sent so cannot use google analytics or something on that links.
I need some mechanism in the sendgrid dashboard that can notify whether links were clicked or not.

I was able to solve this issue by passing tracking_settings in the message object that needs to be passed to sendGrid.
tracking_settings: {
click_tracking: {
enable: true,
enable_text: true
}
}
tracking_settings : Determines whether you would like to track the metrics of how your recipients interact with your email.
click_tracking : Allows you to track whether a recipient clicked a link in your email.

Related

Button function in a SendGrid Email to Trigger an external Webhook

forgive my naivete in asking this question, but I'm hoping someone can help me.
I have an email I send out through the SendGrid api using a dynamic template. The content of the email is different for each user I send it to (highly curated). I send products, their name, info, and a link to buy them.
I am looking to create a "LIKE" button next to each product for the user to interact with in the email and provide feedback on that product. That is, if they like that product but don't want to click to buy yet, they can hit "LIKE" and I'll be informed.
I am thinking I would do this through a webhook using something like integromat where a click of the button would trigger the webhook and then I would use something like airtable to update information.
Is something like this feasible? Would I just put the webhook URL in the href tag of a button? Is it possible to trigger the webhook AND then redirect to a window/tab that would acknowledge that the button was clicked?
Thank you for any feedback!
Links in an email will open a web browser outside of the email. This will make an HTTP request to the URL that you set as the HREF for the link (<a>). So, you can point that HREF directly at an endpoint on your own application and handle the request, storing the data about which user liked which product and rendering or redirecting the user to a confirmation page.
I think you may be complicating the idea by introducing the term webhook to this. I also see no reason you would want to include a third-party like Integromat to the proceedings.

Facebook Message Webhook Event : How to identify that the message is a reply/comment of a Page Story?

I have a bot running well receiving messages through the Facebook message webhook event. Everything works well when the user sends messages through the messenger app.
But When a user replies to the page story, it generates an incoming message as if it was a standard one and it's not possible to handle this context which is completely different form a user initiated conversation.
Any idea how to receive to differentiate a "standard" message from a "reply to page story" one ? Thx
There is no way to differentiate between these two entry points/sources. Both will trigger a regular message event with no specific attributes added that would allow you to differentiate the source/entry point.

GDPR re-permission email

looking for a little advice on HTML emails and GDPR re-permission.
With the new GDPR regulations I have to create an email to send out to an existing list requesting their consent to continue contacting them.
My intention is to have an 'I'm in' button in the email, which when clicked takes the user to another page/url which has a simple form on it requesting the users email address and checkbox for them to tick to opt in.
My question is can I achieve this another more simple way. For example in the email itself when the user clicks the 'I'm in' button, can a post submission be made automatically with their email address, that gets sent to clients email, and they then just get re-directed to a standard success message. Is something like this possible? It would save having to create a form somewhere and make the process easier for the user.
I don't normally do HTML emails so I'm a little unsure - any help on this would be greatly appreciated, thanks in advance
Yes, you could embed their email in the query string of the URL and then have a webapp at that URL pick up their email from the querystring and process it. Obviously you'd need to code the webapp side accordingly.
E.g:
I'm in!
If you can still send an email to the user, the collection of consent can be quite simple. It will be sufficient to send each user an email containing a link to accept the newsletter (e.g. "Yes, I want to receive the newsletter"). The email should also contain the terms and conditions of the service, and the privacy policy. What come next can be either automated, or handled manually.
The best option would be to automate the process. This can be done in multiple way, the simplest being with a customized link for each user pointing to a website capable of interpreting the data transmitted by the link itself. To achieve this result, the link contained in each email should contain an identification code - which should be anonymized where possible - so that it will be possible to link the new consent to each user. In this way, when the user clicks the link, he or she will be taken to the website. At that point, the backend will be able to collect the code passed by the link, identify the user and, finally, re-subscribe the user to the newsletter.
In practical terms, in the email there could be a link with a value to be passed as a `GET« parameter:
Yes, I want to receive the newsletter
The server-side logic could be as follows (in PHP synthax):
// re-subscribe.php
$uuid = $_GET['uuid'];
$user = getUserByUUID($uuid); // assumed function that gets the user infos by a UUID
subscribeUser($user); // assumed function that re-subscribes user to the newsletter
echo 'Thank you!'
This could even be accomplished manually, provided that a link tracker service/tool is used.
In this – less ideal – case, in the email there should only be a single clickable link, the one required to express consent (e.g. "Yes, I want to receive the newsletter"). This link could take the user wherever deemed most appropriate. What matters, in this case, is the ability, through the tracker service/tool, to know which users have clicked the link. As long as there is only one link in the email, this would inform us that the user has expressed his or her consent, and thus we could manually re-subscribe them to the newsletter. In this case, the link to the terms and conditions and to the privacy policy should be included as static text, and not as an actual clickable link.
For more info, check out our blog post, inspired by this question, at blog.autoprivacy.eu/2018/05/newsletters-after-gdpr-existing-and-new.html

G Suite calendar and mail integration

We use the Google Suite for corporate email, calendar etc. What I am trying to achieve here is, I need to be compose an email in gmail with a link to a calendar invite. I would also be able to fill in the details of the meeting through the invite which is embedded in the email. For example, I should be able to send an invite to xyz at company.com with subject Meeting to discuss status and with the body of Test Message. Is there a way I can do that?
I think the best way to do it is just use standard invitation. You just simply add new calendar event and set guests:
Open Google Calendar
Open an event, or create a new one. Specify event title and description - it will be then stated in the invitation email...
On the right, find the "Guests" section.
Start typing the name of the person and choose someone from your contacts. You can also type an email address to invite people who aren't in your contacts list.
When you're done editing your event, click Save.
When you save your event, an email invitation will be sent to your guests.
What is also good, there is .ics file in attachment of invitation email - can be useful for non google recipients using another email clients.
However, if you need URL of the event, you can get it on the event edit page in google calendar - there is a link on the bottom of the page: "publish event" - you can copy the link of the event there. But please be aware that the Google calendar the event is tied to needs to be public (or shared with the recipients), and not just the event itself. (This link is useful for google calendar users...)

Can I get some sort of notification from parse.com if a user "flags" certain material from my iOS app?

I am using parse.com to store my backend. My data is crowd sourced. So there is a chance that some material will be vulgar/spam. I want to allow the user to flag certain objects that I store in Parse so I/others can take a look at it. My idea right now is to have the user tap a button on the object in question and have that send me an email. I don't believe I can have that send me an email with some reference to that object. I know I can have the email UI pop up and they can send it that way, and that will be my last resort. But is there a way I can utilize parse and just have that button tap send some data to my parse backend, then have that send me an email with that object id in the email?
Thanks
Look at Parse's Cloud Module Guide. It has instructions on how you can use SendGrid, Mailgun, or Mandrill from cloud code to send an email whenever a new object is saved. You can use this to send yourself an email when a user creates a new "Flag".