Matomo Java Tracker not working?

On following the steps mentioned on https://github.com/matomo-org/matomo-java-tracker there is no entry visible in matomo. Tried giving the campaign name and keyword with the action URL as mentioned on github and also tried using the .setCampaignName, .setCampaignKeyword methods from PiwikRequest. Both methods not giving any entries in matomo.