Save regarding to GDPR?
Save regarding to GDPR?
Save regarding to GDPR?
I’m not sure if this is legal in all countries but you can send the emailadress back to you by adapting it in the link the user clicks to your website. e.g. The email they receive has a button that links to your website. the url of the button looks like this: <a href=”http://www.yourwebsite.com?email=”[email protected]””><img src=”button.jpg”></a> … Read more
First, I would comment all that JavaScript out and simply do a console.log(‘This Function is Running…’) to see if it is actually firing or not. That being said, how I would approach this is to actually put this in a JavaScript file and simply enqueue it along with the rest of my styles/scripts. You can … Read more
the <script> tag is not allowed on WordPress.com Since the Google Analytics script uses that tag, it’s not possible to add it. This has been asked and dealt countless of times on the forums of WordPress.com but they do not wish to compromise the security of their site by allowing scripts (Javascript/VBScript). If you find … Read more
First, your question will likely be closed soon because it has nothing to do with the focus of this group. Second, Google Analytics reports on visitors and what they do on your site. It will track visits to the site, what pages they visit, and more. And you can narrow down those stats to specific … Read more
I solved the problem, and the download statistics now works in Google Analytics. Using the plugin mentioned above, download statistics are readily available, but it didn’t work out for me until now. This was because I had made all the links for downloadable files on my site with relative paths – for instance with <a … Read more
Use conditional tags for each author with their tracking code in a custom function. is_author( ‘4’ ) && is_single() )
I finally found the answer buried in deep inside the Admin panel for customizing the particular theme that’s being used. Funny, because I looked there already, but missed it the first time around. Evidently, these particular options are saved into a database which explains why scanning for keywords found in all the site files came … Read more
You hook into the wp_footer and add your GA code. Here’s is how I would do it. Option 1: Get the current URL and counter check it with you selected URLs. add_action(‘wp_footer’, ‘wpse388915_custom_ga_code’, 99); function wpse388915_custom_ga_code() { $current_url = (is_ssl() ? ‘https://’ : ‘http://’) . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’]; switch($current_url) { case ‘www.example.com/page/path1’: case ‘www.example.com/page/path2’: case … Read more
You shouldn’t have a call to wp_head hook twice. Why does comments need its own call? Get rid of second call and see if that doesn’t break anything.