I have contact form 7 on a site. With classic analytics I had this in additional settings..
on_sent_ok: "_gaq.push(['_trackPageview', '/goals/enquiry-sent']);"
And it tracked fine as a destination goal. As soon as I updated to Universal analytics (including the demographics tracking), I then updated the code to:
on_sent_ok: "ga('send', 'event', 'category', 'action', 'label');"
and also tried
on_sent_ok: "ga('send', 'pageview', '/your/url');"
and I just can't get either of them to track.
Any ideas would be much appreciated!!
Thanks,
on_sent_ok: "ga('send', 'event', 'Contact Form', 'sent');"
This works for me. Replace "Contact Form" with something you want.
Related
I use magento 2, when submit contact form then issue on mail, when receive successfully but problem is apostrophe character.
Suppose any Customer write comment like: Can't able to login then in mail
display like: Can ' ; t able to login
I use 4-5 latest version all version this common issue,
Please help to resolve if you know
Go to this path "/vendor/magento/module-contact/view/adminhtml/email" and open "submitted_form.html" and replace 19th line code with the below-mentioned code
{{trans "Comment: %comment" comment=$data.comment|raw}}
Adding to the comment of Abhinav Kumar Singh, there's another way for those who are working with copies of the default e-mail templates in admin backend: MARKETING > COMMUNICATIONS > E-MAIL TEMPLATES.
No need to override original Magento files.
After you have imported the Contact-Form Template, you will find the same syntax in the Template Content field. Just add the "|raw" tag there.
{{trans "Comment: %comment" comment=$data.comment|raw}}
or
{{var data.comment|raw}}
I'm using google Analytics API in extended way. My page manages alot of events what user does.
Since I exactly can tell where user is from (Locally targeted advertisment) I would like to set user's exact location, so it appears in analytics.
Is that possible?
For example it would look like:
ga('send', 'pageview', {
'page': '/pagename',
'location': 'City/district name'
});
That way, I could tell how many clients from which place are currently on my site.
Google Analytics out the box will detect the IP of the user and detect the region/country/city.
But if you want to check that with the data you capture, I would put it in an event and/or custom dimension. e.g.
ga('send', 'event', 'user', 'geolocation', '{{yourLocationVar}}');
Event tracking info here.
Custom dimensions details here, needs a bit more setup but nicer reports
I am trying to implement in my game a request that will function as an 'Ask for help' request.
The user will send this request to his friend, and if the user helps him, I need to know about it.
After looking over all the documentation, I came up with this: https://developers.facebook.com/docs/games/requests#implementation
It says that I need to add an extra parameter, especifing the action to be executed.
Here is an example copied from the doc:
FB.ui({method: 'apprequests',
message: 'Take this bomb to blast your way to victory!',
to: {user-ids}
action_type:'send',
object_id: 'YOUR_OBJECT_ID' // i.e. '191181717736427'
}, requestCallback);
When I try to do this with Unity, I dont have nearly the same parameters (in FB.AppRequest). Is there something I'm missing? How can I achieve this behaviour in Unity?
This is only present in the Javascript SDK. Currently the Unity SDK does not have this yet.
The newest unity SDK (5.1) is implemented the missing function.
For a particular project, I am trying to configure mantis to send an email to all Supervisors (65) whenever a new bug is submitted.
To do this I have added an entry to the Configuration Report page as so:
Username: All Users
Project Name: Test New
Type: Complex
Value:
array ('new' => array('threshold_min' => '65', 'threshold_max' => '65'))
When I add that it re-formats it like so:
array (
'new' => 'array(\'threshold_min => \'65',
'threshold_max' => '65\')',
)
and doesn't send the emails to the project supervisors.
Can someone assist me please? Very new to configuring Mantis!
I discovered that I also had to make the Supervisor enabled for 'E-mail on Change of Handler' (I also had to do this for Manager level to receive emails when assigned.
Its now working :)
Login as administrator in mantis.
Click on Manage Configuration.
Click on Email Notification.
You will get a table which tells when mail should be triggered at various instance of time, select appropriate options.
Click here to view the documentation of mantis administrative guide
Attached picture is the snapshot for your assistance...
Below is just for your mantis functionality enhancement...
You can also give CHAT option for different levels of users by including
$g_main_menu_custom_options = array (
array( "Chat", REPORTER, 'chat_page.php' )
);
in your config_inc.php.
I've merged phpchat application with mantis.
You can configure to send emails to a particluar user role as "Manager". Then assign all those 65 people this role in the project.
All these people will get mails.
Let me know if this helps.
There is currently a known limitation in the manage config page, which does not properly handle entry of complex types properly.
I actually started working on a fix for this a while ago based on the initial submission from the issue's reporter, but got sidetracked and never got around to finalizing it. You can find the work in progress on my github branch.
Until then, I'm afraid that your only option would be to enter the required setup directly in config_inc.php.
I need to add a checkbox with text "Send a copy of this email to yourself" to Contact Form 7 in WordPress, so the sender can receive a copy of the message he sents.
I can't find anything on google, so your help would be really appreciated.
Thank you.
In the solutions above you can have two recipients, but you asked about a mail copy, so a carbon copy perhaps. The best practice is to use the "additional headers" functionality of the "contact form 7" wp plugin.
Good luck! :)
P.S.: But with checkbox it is more complicated, you need to use JS validation in "Form" box.
I am not using Contact Form 7 anymore but as far as I remember on the settings page of your form, there are two areas called Mail. The first one is for receipment and you can enable the other one by checking the checkbox Mail(2). That one is for copies.
http://s.wordpress.org/extend/plugins/contact-form-7/screenshot-1.png?r=561651
By the way, I recommend using: http://www.gravityforms.com/
Very easy to use and lots of options to play with.
add this code to your theme's functions.php
add_filter( 'wpcf7_additional_mail', 'my_wpcf7_use_mail_2_or_not', 10, 2 );
function my_wpcf7_use_mail_2_or_not( $additional_mail, $cf ) {
if ( 'yes' != $cf->posted_data['sendcopy'] )
$additional_mail = array();
return $additional_mail;
}
and alter the select tag to this:
[select sendcopy "no" "yes"]
Copy email form the one with mail tags that you receive and place it to the mail(2) field. and
ticke the Mail(2). then your Mail(2) will be active only when they select "yes".
In the mailing address input field you can just add additional email addresses separated by a comma.
+1 for Gravity Forms too. It's developer licence is well worth the money a brilliant plugin.