Hi,
just realized that tracking of external links with the GA plugin and the caching of entries function do not seem to work well with each other:
If I enable caching no external link tracked, if I disable it, it just works...
Is there a workaround for that?
Daniel
Google Analytics and Article Caching
-
- Regular
- Posts: 765
- Joined: Tue Oct 17, 2006 2:36 pm
- Location: Vienna/Austria
- Contact:
Re: Google Analytics and Article Caching
Can you check the difference in the cached and the non-cached version? And have you tried refreshing the cache?
Re: Google Analytics and Article Caching
Now I get confused:
Yesterday there were only two links in the sidebar which were converted to google events, and no links in the text. Now there is still a difference, but only with one external link (from several on that page):
So the file "ohne cache" still has one link more which is equipped with a extlink event. But at least at the moment is is only one link... instead of all of them yesterday...
What do you mean by refreshing the cache? Before my experiments above I deleted the files in template_c.
Daniel
Yesterday there were only two links in the sidebar which were converted to google events, and no links in the text. Now there is still a difference, but only with one external link (from several on that page):
Code: Select all
Desktop$ diff mit\ cache.html ohne\ cache.html
522c522
< <p>Another allegedly more complete way of including risks into modeling is to assign specific probabilities or even stochastic distributions the model’s parameters. In this way using a <a href="http://en.wikipedia.org/wiki/Normal_distribution" title="en.wikipedia.org">normal distribution</a>, would represent the uncertainty about the future values of the parameter. Nonetheless, this approach has theoretical and practical flaws as well. From a practical standpoint, the time needed for solving the resulting model (especially with realistic model sizes) increases dramatically and may even be insolvable. And from a theoretical point of view, the assigned distributions may also prove to be wrong in reality. </p>
---
> <p>Another allegedly more complete way of including risks into modeling is to assign specific probabilities or even stochastic distributions the model’s parameters. In this way using a <a onclick="_gaq.push(['_trackPageview', '/extlink/en.wikipedia.org/wiki/Normal_distribution']);" href="http://en.wikipedia.org/wiki/Normal_distribution" title="en.wikipedia.org">normal distribution</a>, would represent the uncertainty about the future values of the parameter. Nonetheless, this approach has theoretical and practical flaws as well. From a practical standpoint, the time needed for solving the resulting model (especially with realistic model sizes) increases dramatically and may even be insolvable. And from a theoretical point of view, the assigned distributions may also prove to be wrong in reality. </p>
What do you mean by refreshing the cache? Before my experiments above I deleted the files in template_c.
Daniel
-
- Regular
- Posts: 765
- Joined: Tue Oct 17, 2006 2:36 pm
- Location: Vienna/Austria
- Contact:
Re: Google Analytics and Article Caching
I don't know, which caching plugin you are using, but the data may be stored in the db and not in template_c, which is used to store compiled templates.
Re: Google Analytics and Article Caching
Mhh, I am using the extended properties for entries plugin and unsure which table to truncate.
Daniel
Daniel
-
- Regular
- Posts: 765
- Joined: Tue Oct 17, 2006 2:36 pm
- Location: Vienna/Austria
- Contact:
Re: Google Analytics and Article Caching
Sorry, I dont know either but maybe Garvin knows, where the cache is stored.
Re: Google Analytics and Article Caching
Eventually PREFIX_entryproperties ?!
This one caches entries when using extended properties.
This one caches entries when using extended properties.
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Google Analytics and Article Caching
I truncated the _entryproperties table and lost all my data...
Just joking, sorry.
Interestingly, I found only two or three cache-related entries in that table. One of which was for the faulty article in the example above. I removed them and now it works fine. Even with caching set to on.
But then I am wondering when are these caches created at all? Because I basically had it switched on for several month and only two or three articles appeared there (I publish three articles a week).
Daniel
Just joking, sorry.
Interestingly, I found only two or three cache-related entries in that table. One of which was for the faulty article in the example above. I removed them and now it works fine. Even with caching set to on.
But then I am wondering when are these caches created at all? Because I basically had it switched on for several month and only two or three articles appeared there (I publish three articles a week).
Daniel
Re: Google Analytics and Article Caching
You dont need to remove them, just re-save you specific entry in the admin panel, to save them with some changed extended properties, markups etc.
The entryproperties plugin adds extended behaviour to entries.
These entries get cached to output them independently from markup plugins or have individual, non changeable snapshot entry settings until next save submit. If you dont change the defaults, the entry will just have the value "public", meaning, follow normal entry display settings (at least I think this is the way it behaves). This is, as long Entryproperties is installed and active.
Add:
maybe this explaination by Garvin is more clear
http://board.s9y.org/viewtopic.php?f=4& ... #p10424872
The entryproperties plugin adds extended behaviour to entries.
These entries get cached to output them independently from markup plugins or have individual, non changeable snapshot entry settings until next save submit. If you dont change the defaults, the entry will just have the value "public", meaning, follow normal entry display settings (at least I think this is the way it behaves). This is, as long Entryproperties is installed and active.
Add:
maybe this explaination by Garvin is more clear
http://board.s9y.org/viewtopic.php?f=4& ... #p10424872
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian