Skip to content

%anchor_text% in article all time is random

Lord_AlfredLord_Alfred world
edited January 2018 in Need Help
Hi.

Why if I use %anchor_text% macros in article in spintax - in posted pages %anchor_text% replaced by random anchor (not current anchor)?

Example.

Article:
<a href="%url%">%anchor_text%</a>
{%anchor_text% a|%anchor_text% b|%anchor_text% c}
{%anchor_text% a1|%anchor_text% b1|%anchor_text% c1}
{%anchor_text% a2|%anchor_text% b2|%anchor_text% c2}


Current anchor: anch1, url = http://gsa.com
(And I have other 5 anchors + urls)

Result:
<a href="http://gsa.com"> anch1 </a>
anch2 a
anch3 c1
anch5 b2


Why anchor is randomed?

UPD: in Article Preview and Project Test all is OK, but in posted pages - not ok. (I can send posted pages and project to developers in direct messages).

Comments

  • SvenSven www.GSA-Online.de
    anchor is random once it is no longer bind to an URL. If you use it more than the url, it is random.
  • Lord_AlfredLord_Alfred world
    edited January 2018
    @Sven, why? Already exists %random_anchor_text% for this.

    I thought, in one posted page %url% and %anchor_text% is static (by the logic), and Article Preview and Project Test tools - confirmed it.

    If use %anchor_text% more than the %url%, then no possible to create pages about current anchor (as in the example).

    How to build this pages?

    PS: I think, if I use %url% more than 1 - url randoming too. I check it in few hours.
  • Lord_AlfredLord_Alfred world
    edited January 2018
    @Sven, I'm sorry, but it is bug.

    URLs with anchors:


    Article:


    Article Manager settings:


    Article Preview:


    Project Test tool:

    Posted results 1:

    And results 2:

  • @Sven, you need any help/dump/report from me for reproduce this bug?
  • SvenSven www.GSA-Online.de
    I bookmared this one and will work on it next week. Sorry but on weekends Im not really into coding as Im not in office. I will however take care of it and request more details from you if needed.
  • @Sven, thanks! I just thought it went unnoticed.

  • SvenSven www.GSA-Online.de
    while thinking about it, it is not  a bug but intent to work like that. If there was a use of %url% and %anchor_text% once, it is using a random one after that.

    And it will also try to use a new random url with their anchor text if used in e.g. a link. You however keep using just %anchor_text% after the first link which is not working as you want it.

    What I can try is adding another macro as %last_anchor_text% which will always use the last anchor used in an url/link.
  • while thinking about it, it is not  a bug but intent to work like that
    Why in Article Preview and Project Test tool this functions work otherwise?

    What I can try is adding another macro as %last_anchor_text% which will always use the last anchor used in an url/link
    Maybe adding other macro, like "%article_anchor_text%"? In my case I need to add main article anchor in some spintax for get results like I showed in 'Article Preview' screenshot.
  • SvenSven www.GSA-Online.de
    Why in Article Preview and Project Test tool this functions work otherwise?
    Because I use simple search/replace things here that are different when submitting.

    Anyway, why using same anchor everywhere? Isn't it more wise to use some variations? Thats why you have %TAG% here.
  • Lord_AlfredLord_Alfred world
    edited January 2018
    @Sven, I don't understand you. Maybe is my mistake and I need to use another tag? For create articles like:

    <h1>Article title with Anchor</h1>
    Some data about Anchor with <a href="http://url.com">Anchor and 2 words about it</a>
    <h2>How I use Anchor</h1>
    My point to use Anchor is...
    <h2>Anchor and his friends</h2>
    About friends for Anchor ...
    Where Anchor == "John".

    Now in GSA SER create articles, where in Title one Anchor (John), in subtitle another Anchor (Jack) and in description of subtitle - other Anchor (Lisa).

    -----

    In other words, I need to create articles with using anchor in spintax:

     
    For get results like:


    Now its impossible, because %anchor_text% replaced to random Anchor.
    What do I do?
  • SvenSven www.GSA-Online.de
    you should use %tag% here and for %tag% you can specify to use the anchor or keywords. I guess you don't need the keywords, so I would put in some anchors or just one and variations to it.
  • Lord_AlfredLord_Alfred world
    edited January 2018
    @Sven, sorry but I dont understand... What the %tag% you mean?

    How do I change my article?

    It's about <a href="%url%">%anchor_text%</a>.


    But next paragraph about: %anchor_text% with %url%.


    And next paragraphs about:

    {%anchor_text% a|%anchor_text% b|%anchor_text% c|%anchor_text% d|%anchor_text% e}

    and

    %url%.


    Simple replacement to %tag% not working...



  • SvenSven www.GSA-Online.de
    %TAG% is a macro used when submitting only.
  • @Sven, no, macro %tag% gives the same effect (random anchors in article).

    Article settings:


    Posted results:





  • SvenSven www.GSA-Online.de
    yes, but as you don't need keywords, you can e.g. use that here.

    Another option is to use the secondary anchor text bind to the url.
  • > Another option is to use the secondary anchor text bind to the url.

    How to use secondary anchor text?
  • SvenSven www.GSA-Online.de
    format: url#1stanchor#sndanchor
  • And in article use: %anchor_text2%, right?
  • SvenSven www.GSA-Online.de
    no %sanchor_text%
  • %tag% and %sanchor_text% not found in: https://docu.gsa-online.de/search_engine_ranker/macro_guide

    There is some other place where it describes all the macros? I just didn't know about the existence of them (tag and sanchor_text).
  • @Sven, I tested %sanchor_text% - he also randomly set anchors in article.

    My URLs:


    Article:


    And results:




    As you can see, it takes a random second anchor. And I needed the anchor from the current page.

    @Sven, please.. make macro like %main_anchor_text% - which will insert the current anchor post (without randomization)
  • SvenSven www.GSA-Online.de
    arg ok, will have to think about it.
  • New macro %main_anchor_text% works fine! Thanks, @Sven!
    Thanked by 1Deeeeeeee
Sign In or Register to comment.