I want to check by adding cloudflare turnstile to sweetalert2 notification box.
I am using php.
I've seen material using Google reCaptcha instead of Cloudflare Turnstile. But it was different from the cloudflare turnstile.
Please tell me how!
Related
I need to push offline transactions to Google Analytics.
I am thinking of creating a php script that queries the ecommerce database looking at transactions made in the last hour created from the backend. Having identified these transactions (and line items/SKU's).
How do I use PHP to push data to Google Analytics?
You need to go though the measurement protocol. There is no client library to help you do this in PHP you will have to code it yourself. That being said its not that hard its just a normal HTTP Post or HTTP Get request. The trick is building up your requests correctly.
A couple of quick tips.
Qt stands for que time and will allow you to set the time that the hit arrived on your server. Note it must not be greater than four hours ago.
While you are testing this you can use the debug endpoint to validate your hits. The hits wont be sent to Google but it will tell you if they are valid or not.
Measurement Protocols as #DaImTo mentioned is the answer. make a try here replacing the UA Id -
https://ga-dev-tools.appspot.com/hit-builder/?v=1&tid=UA-XXXXX-Y&cid=555&t=transaction&ti=12345&ta=westernWear&tr=50.00&ts=32.00&tt=12.00&cu=EUR
You can use DIv tool to validate all your post requests.
(dont forget to enable - ecommerce from view settings in GA when testing on new account)
I am wondering whether i can add google analytic to an email.
I want to check my click rate , open rate of my sent mail. I have done some research on this and I learnt that there is a track code should be useful.
So,
Since now i am sending an html version email, is it possible to add the code into the mail?
Also,
If i want to see the result of it , is it possible i do not need to login to the google page, but connect to their server and retrieve the result and show them on my php page?
Thank you
I would say NO on this question. You could of course add the Google Analytics script-snippet to your HTML email, but I believe most e-mail clients will block the JavaScript for security reasons. Thus leaving you with inaccurate data, at best.
In your case, if you don't want to send your mails through MailChimp or some other third party service that does the tracking for you (they track both openings and clicks), I would implement my own "simple" tracking system. Each link in the email re-directs through a page that you are in control of, where you track the click and then redirect the user to the appropriate address.
Update
About getting data from your Google Analytics account, I believe you can use the Analytics Reporting API. Haven't tried it myself, but it sounds like what you are needing.
Yes , when you are sending the HTML code to the client , enclose an analytics snippet in the FOOTER of your page. That should do it. However you cannot modify the code.
You can use Google Analytics tracking code, but you will see the "visits" only.
"Visits" => When a user opens an email of you (and of course to be connected to internet)
I think this code will not work inside Outlook.
To see the results, you need to login into your Google Analytics account.
PS: Be sure to setup a valid analytics tracking code.
You can only track link-clicks with Google Analytics if your target site has the Analytics Code in it:
You can read about it here:
http://analytics.blogspot.com/2009/03/tips-for-tracking-email-marketing.html
Yes it is possible to use google analytic's to track open rates.
If you have a pure text version of a email no it is not possible to track it as it need a call to a image so it is only possible using a html version. No you do not try and embed the standard javascript for the tracking you make a direct call to the tracking gif.
There was a free service that did do this
http://web.archive.org/web/20100828084217/http://email-tracking-with-google-analytics.com/index.php
Basically, I want my users to be able to just click a button and get a small popup-window that puts them in contact with me through one of the major communicationstools.
Does anyone know about any such services?
You'd need to cover a lot of different services, and hope they were running that app when they visited your site.
Use Live Chat or similar - you've probably seen the type of thing around:
http://www.imsupporting.com/
http://www.livezilla.net/home/en/ - free
http://www.chat4support.com/ - free version
http://www.craftysyntax.com/ - free (plus pointless following eyes on homepage).
I've not tested them so can't give any info on how good they are...hope this helps.
Make a link with the following href format:
SendMessage
Note: requires the client have the IM client installed, and is not supported by all IM clients.
For AOL:
Send Message
For Yahoo:
Send Message
For Google:
Send Message
For MSN/Windows Live:
Send Message
For ICQ:
Send Message
I've tried using curl to add new events to yahoo, succeeded in logging in and getting the calendar add events page, but when i try to post events using curl, it redirects me to login page. Please suggest what can i do...?
Thanks in advance
The Yahoo! Calendar web application most likely has mechanisms in place to prevent scripted access or screen scraping.
You might try the published API for accessing Yahoo! Calendar through the CalDAV interface:
http://help.yahoo.com/l/us/yahoo/calendar/yahoocalendar/misc/misc-01.html
Did anyone here manage to curl in aweber?
Thanks!
yeah, however its useless, as after some form submissions they will block your account because email subscriptions etc need to come from the client ip and not a fixed site ip. What are you trying to do exactly?
Aweber provides an API https://labs.aweber.com/ which you can use to add subscribers etc, most likely what you were doing with the curl I assume.
Plus it wont get your IP blocked!