• Hello, I have set up some links in a page text in the visual editor. Everything works fine. Now I want to add some code to the links (these are links to PDF files and I want to track them with Google Analytics).

    So I go to the HTML Text editor instead of the visual text editor, and I add some code to my links. I save the changes and publice the page. Now, when I open the HTML Text editor again I see that the code I have added is gone…

    So somehow the HTML Text editor is not saving my changes to the code. What am I doing wrong here?

    The code I am trying to add is this:
    onclick=”ga(‘send’, ‘pageview’, {‘page’: ‘/documenten’, ‘title’: ‘PDF 1’});”

    Thank for your help!

Viewing 1 replies (of 1 total)
  • Hi @wp-opti,

    Not sure is it caused by your code or other things? In general, if you type something in editor and click update button, your changes should be stored into wp_posts table, so what you faing is not normal process progress. What I know is when js file be stopped in browser(our country firewall like stop js transfer), sometimes the new changes will not saved, but I believe what you find is not this kind of problem? If you are using normal browser for example chrome or fires, I think maybe you can enter F12 and click “Console”, if there are js error, you will find it in console tab, maybe you can just clear your browser cache and restart PC…? I saw a EN TV and when they get call they always like say: do you restarted your computer? ??

    If still can not work, maybe you can open phpmyadmin and try to view your wp_posts table for ensure is changes be stored or not? Of course, in phpmyadmin, you can always insert anything in posts, but if you did not use phpmyadmin before, do not do this, because it have a little risk.

    Good luck, have a good day ??

    Best Regards,
    Tomas

Viewing 1 replies (of 1 total)
  • The topic ‘html text editor not saving changes’ is closed to new replies.