diff --git a/hoot-core/src/main/cpp/hoot/core/conflate/network/PartialNetworkMerger.cpp b/hoot-core/src/main/cpp/hoot/core/conflate/network/PartialNetworkMerger.cpp
index 1c42337..fd53a48 100644
--- a/hoot-core/src/main/cpp/hoot/core/conflate/network/PartialNetworkMerger.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/conflate/network/PartialNetworkMerger.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#include "PartialNetworkMerger.h"
@@ -111,6 +111,12 @@ void PartialNetworkMerger::_applyMerger(const OsmMapPtr& map, WayMatchStringMerg
merger->mergeTags();
// set the status on all keeper ways to conflated.
merger->setKeeperStatus(Status::Conflated);
+ ConfigOptions conf;
+ if (conf.getWriterIncludeDebugTags() && conf.getWriterIncludeMatchedByTag())
+ {
+ Tags tagsToAdd(MetadataTags::HootMatchedBy(), HighwayMatch::MATCH_NAME);
+ merger->addKeeperTags(tagsToAdd);
+ }
// go through all the nodes in the scrap
QList<ConstNodePtr> scrapNodeList;