The Only World-Standard SEO Software

SEO and Internet Marketing Forum
Welcome, Guest ( Login | Register )

Extract only last rank checked
New Topic Add Reply
Page 1 of 1 [ 1 post ]
Author Message
oscarneto

Newborn

Newborn
Posts: 2
Posted: Thu Jan 02, 2020 8:15 pm

Hi guys :)

I need some help on export template customization on Rank Tracker. Recently, i changed a export template code created per aaron.cediel (thanks inclusive by the code!) including search volume and he extract all historical data for each keyword and search engine on my project created. Below, follow the example of the code i've adjusted:

<[DEFINE name="dateFormat" value="exportData.createDateFormat('yyyy-MM-dd')"/]>
<[DEFINE name="keywords" value="exportData.keywords"/]>
<[DEFINE name="searchEngines" value="exportData.searchEngines"/]>
<[DEFINE name="competitors" value="exportData.competitors"/]>
<[DEFINE name="ENTERED_VALUE" value="2147483647"/]>
<[DEFINE name="DROPPED_VALUE" value="-2147483646"/]>
<[DEFINE name="NOT_RANKED_VALUE" value="-2147483647"/]>
<[DEFINE name="NOT_CHECKED_VALUE" value="-2147483648"/]>
Date,Keyword,Tags,Search Volume,Search Engine,Site,Rank,URL
<[FOR_EACH name="keywords" id="keyword"]><[FOR_EACH name="searchEngines" id="searchEngineType"]><[DEFINE name="history" value="keyword.getHistory(searchEngineType)"/]><[FOR_EACH name="exportData.reverse(history)" id="historyRecord"]>"<[ECHO text="dateFormat.format(historyRecord.checkDate)"/]>",<[ECHO text="keyword.query"/]>,<[ECHO text="keyword.tagsString"/]>,<[ECHO text="exportData.formatSearchNum(keyword.getKEI().searchNumRange)"/]>,<[ECHO text="searchEngineType.getName()"/]>,<[ECHO text="exportData.getProject().getDomain()"/]>,<[DEFINE name="position" value="exportData.getPosition(historyRecord)"/]><[IF condition="position != null"]><[THEN]><[ECHO text="position"/]><[/THEN]><[/IF]>,<[ECHO text="historyRecord.url"/]>
<[FOR_EACH name="competitors" id="competitor"]>"<[ECHO text="dateFormat.format(historyRecord.checkDate)"/]>",<[ECHO text="keyword.query"/]>,<[ECHO text="keyword.tagsString"/]>,<[ECHO text="exportData.formatSearchNum(keyword.getKEI().searchNumRange)"/]>,<[ECHO text="searchEngineType.getName()"/]>,<[ECHO text="competitor.getShortName()"/]>,<[DEFINE name="competitorHistoryRecord" value="exportData.getKeywordPosition(competitor, keyword, searchEngineType, historyRecord)"/]><[IF condition="competitorHistoryRecord != null"]><[THEN]><[DEFINE name="position" value="exportData.getPosition(competitorHistoryRecord)"/]><[IF condition="position != null"]><[THEN]><[ECHO text="position"/]><[/THEN]><[/IF]><[/THEN]><[/IF]>,<[DEFINE name="competitorHistoryRecord" value="exportData.getKeywordPosition(competitor, keyword, searchEngineType, historyRecord)"/]><[IF condition="competitorHistoryRecord != null"]><[THEN]><[ECHO text="competitorHistoryRecord.url"/]><[/THEN]><[/IF]>
<[/FOR_EACH]><[/FOR_EACH]><[/FOR_EACH]><[/FOR_EACH]>

My question now is: How to adjust the code to extract only the current position updated daily and keep the csv structure created?

Thanks for all the help :D

Display topics from previous:    Sort by    
New Topic Add Reply
Page 1 of 1 [ 1 post ]
All times are UTC

Jump to:  


cron